public void When_IsNotNull_is_called_it_returns_the_EnsureArg_created_from_Ensure_Arg() { // Arrange. object value = new object(); IEnsureArg <object> ensureArg = Ensure.Arg(value); // Act. IEnsureArg <object> returnedEnsureArg = ensureArg.IsNotNull(); // Assert. ensureArg.Should().BeSameAs(returnedEnsureArg); }
public void When_And_is_called_the_same_EnsureArg_is_returned() { // Arrange. object value = new object(); IEnsureArg <object> ensureArg = Ensure.Arg(value); // Act. IEnsureArg <object> returnedEnsureArg = ensureArg.And(); // Assert. ensureArg.Should().BeSameAs(returnedEnsureArg); }