6. Assert in unit testing c# | mstest unit testing c# | MSTest in depth | Hindi

Опубликовано: 05 Ноябрь 2024
на канале: simply teching
989
20

In this video I have explained what are the different types of assert methods we are having. I have covered below methods
Assert.AreEqual();
Assert.AreNotEqual();
Assert.IsTrue();
Assert.IsFalse();
Assert.AreSame();
Assert.IsInstanceOfType();
Assert.IsNull();
Assert.IsNotNull();
Also I have explained how we assert or test exceptions using
Assert.ThrowsException().

may time I have heard how to unit test assert void method in c#. So the simple ways to do that is Just pass the necessary parameter and see if the method performs the necessary task like updating any variable or calling any other methods. Or else you can check by adding a variable in the fakes which you have created. I have explained in my previous video on this in depth.

Subscribe the channel :    / @simplyteching  

Visit playlist:    • Unit Test. MS Test  
-----------------------------------------------------------------------------
Other playlists
Design Pattern Playlist:    • Design Patterns in c#  
C# basics Tutorial Playlist:    • C# basics  
Concept Mania Playlist:    • Concept mania  
Tips and Tricks:    • Tips and Tricks  
----------------------------------------------------------------------------
Connect with me on:
Twitter:   / simplyteching  
Linked-in:   / simply-teching  
Facebook: https://fb.me/simplyteching

#unittesting #MSTest #simplyteching