public void Asserts_Equal() { // Arrange var value = Rnd.Str; // Act var action = () => FluentQueryHelper.AssertEqual(value, value); // Assert action(); }
public void Not_Equal__Throws_EqualTypeException() { // Arrange var v0 = Rnd.Str; var v1 = Rnd.Str; // Act var action = () => FluentQueryHelper.AssertEqual(v0, v1); // Assert var ex = Assert.Throws <EqualTypeException>(action); Assert.Equal($"Expected '{v0}' but value was '{v1}'.", ex.Message); }