SharpTestsEx.MSTest Assertion for . Verifies that the given throws a specific . The specific expected . The given to execute. The . The does not throws the expected . Verifies that the given throws a specific . The specific expected . The given to execute. A message to display if the assertion fails. This message can be seen in the unit test results. The . The does not throws the expected . Verifies that the given throws an . The given to execute. The . The does not throws an . Verifies that the given throws an . The given to execute. A message to display if the assertion fails. This message can be seen in the unit test results. The . The does not throws the expected . Verifies that the given does not throw any . The given to execute. Verifies that the given does not throw any . The given to execute. A message to display if the assertion fails. This message can be seen in the unit test results. The intention of is to create a more readable string representation for the failure message. Verifies that the specified object is null. The assertion fails if it is not null. Type of the actual value subject of the assertion. Represent a Assertion template where the real logic is delegated. Type of the actual value. Type of the expected value. Initializes a new instance of the class. Verifies that two specified generic type data are equal. The assertion fails if they are not equal. Type of the actual value. Type of the expected value. The comparison is done ny the base . Initializes a new instance of the class. The value to compare. Verifies that two specified instances are the same object instance.. Type of the actual value. Type of the expected value. Initializes a new instance of the class. The value to compare. Extensions for constraint over object instances. Verifies that actual is the same instance than . The extented. The expected object instance. Chainable And constraint Verifies that actual is an instance of . The expected. The extented. Chainable And constraint Verifies that actual instance is assignable from . The expected. The extented. Chainable And constraint Verifies that actual instance is assignable to . The expected. The extented. Chainable And constraint Verifies that actual instance is serializable using . The extented. Chainable And constraint Verifies that actual instance is serializable using . The extented. Chainable And constraint Useful class to avoid the creation of new Action. This class can be used when the instance of the class under test is no available; typically to test a constructor. When you have an instance of the class under test the most appropite way to test an action is the extension . Executing.This(() => new AClass(null)).Should().Throw(); Executing.This(() => new AClass(null)).Should().Throw{ArgumentNullException}() .And.ValueOf .ParamName.Should().Be("obj"); Basic contract for a generic constraint. The type of the 'actual' value subject of the test. Verifies that the throws a specific . The specific subclass expected. Chainable And constraint Verifies that the throws an . Chainable And constraint Verifies that the does not throw any . etensions methods. Find the first position where two sequence differ The type of the elements of the input sequences. An to compare to second An to compare to the first sequence. The position of the first difference; otherwise -1 where the two sequences has the same sequence. Useful extensions to test s. Returns a sequence of all Inner Exceptions. The root A of all Inner Exceptions Returns a sequence of including the root and all Inner Exceptions. The root A of including the root and all Inner Exceptions. Constraints for . Verifies that the throws a specific . The specific subclass expected. Chainable And constraint Verifies that the throws an. Chainable And constraint Verifies that the does not throw any . The instance thrown. var ex = (new Action(() => new AClass(null))).Should().Throw().Exception; Chainable constraint for The specific subclass expected. The thrown. Allow an readable chained way to begin a new assertion based on one of the properties of the expected (new Action(() => new AClass(null))) .Should().Throw{ArgumentNullException}() .And.ValueOf.ParamName .Should().Be.EqualTo("obj"); The instance thrown. Allow an readable chained way to begin a new assertion based on the itself. (new Action(() => new AClass(null))) .Should().Throw() .And.Exception.Should().Be.InstanceOf{ArgumentException}(); Assertion information. The type of the value subject of the assertion. Subject of the assertion. The assertion is negated ? The title of the assertion ("message" in MsTests terminology) Constraint over boolean values. Constraints for boolean "Should Be" Verifies that actual is true. Verifies that actual is false. Negate next constraint. Constraint over object instances. Constraints for object instance of a specific gine . The of the instance. The actual value The actual value Constraints for object instance "Should Be" Verifies that actual is equal to . The expected instance Chainable And constraint Verifies that the is null. Chainable And constraint Verifies that the actual is an instance of a specific type. The expected . A for the instance converted to the specified type to start a chained assertion. Constraint over instances. The concrete type of actual value. Constraints for instance ("Should Be") Verifies that actual is equal to . The expected instance Chainable And constraint Verifies that actual is greater than . The expected instance Chainable And constraint Verifies that actual is less than . The expected instance Chainable And constraint Verifies that actual is greater than or equal to . The expected instance Chainable And constraint Verifies that actual is less than or equal to . The expected instance Chainable And constraint Verifies that actual is included in the range -. The less aceptable value. The higher aceptable value. Chainable And constraint Verifies that the instance is null. Chainable And constraint Verifies that the is empty. Chainable And constraint Verifies that the is null. Chainable And constraint Verifies that the is empty. Chainable And constraint Verifies that the instance is null. Chainable And constraint Collection information to build the failure message Type of the actual value. Type of the expected value. The actual value under test. The expected value of the test. The name of the assertion "be EqualTo" The user custom message. Extensions for any System.Object. Allow access to a private field of a class instance. The of the field. The class instance. The field name. The value of the field. A strongly-typed resource class, for looking up localized strings, etc. Returns the cached ResourceManager instance used by this class. Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. Looks up a localized string similar to Should. Looks up a localized string similar to Be. Looks up a localized string similar to <Empty>. Looks up a localized string similar to Can't access to a field of a null value.. Looks up a localized string similar to The class {0} does not contain a field named {1}.. Looks up a localized string similar to The class {0} does contain a field named {1} but its type is {2} and not {3}.. Looks up a localized string similar to Can't check serialization for (null) value.. Looks up a localized string similar to Expected: {0}. Looks up a localized string similar to Differences :. Looks up a localized string similar to Values differ at position {0}.. Looks up a localized string similar to Not expected exception message:. Looks up a localized string similar to Strings differ at position {0}.. Looks up a localized string similar to Found : {0}. Looks up a localized string similar to Not. Looks up a localized string similar to (null). Looks up a localized string similar to Be Assignable From. Looks up a localized string similar to Be Assignable To. Looks up a localized string similar to Be Binary Serializable. Looks up a localized string similar to Be Empty. Looks up a localized string similar to Be Equal To. Looks up a localized string similar to Be Greater Than. Looks up a localized string similar to Be Greater than Or Equal to. Looks up a localized string similar to Be in Range. Looks up a localized string similar to Be Instance Of. Looks up a localized string similar to Be Less Than. Looks up a localized string similar to Be Less than Or Equal to. Looks up a localized string similar to Be Null. Looks up a localized string similar to Be Ordered. Looks up a localized string similar to Be Ordered ascending. Looks up a localized string similar to Be Ordered By ({0}). Looks up a localized string similar to Be Same instance As. Looks up a localized string similar to Be SubClass Of. Looks up a localized string similar to Be Subset Of. Looks up a localized string similar to Be Xml Serializable. Looks up a localized string similar to Contain. Looks up a localized string similar to Not throw. Looks up a localized string similar to Have Attribute. Looks up a localized string similar to Have Same Sequence As. Looks up a localized string similar to Have Same Values As. Looks up a localized string similar to Have Unique Values. Looks up a localized string similar to Have Value. Looks up a localized string similar to Throw. Looks up a localized string similar to Throws an exception.