public void No_match_if_something_else() { var simonChurch = new SimonChurch(); var matcher = Is.InstanceOf(typeof(ShaneLong)); var matches = matcher.Matches(simonChurch); Assert.That(matches, Is.False()); }
public void No_match_if_something_else() { var simonChurch = new SimonChurch(); var matcher = Is.InstanceOf(typeof(ShaneLong)); var matches = matcher.Matches(simonChurch); Assert.That(matches, Is.False()); }
public void Describe_mismatch() { var simonChurch = new SimonChurch(); var matcher = Is.InstanceOf(typeof(ShaneLong)); var description = new StringDescription(); matcher.DescribeMismatch(simonChurch, description); const string errorMessage = "Simon Church is an instance of NHamcrest.Tests.Core.IsInstanceOfTests+SimonChurch not" + " NHamcrest.Tests.Core.IsInstanceOfTests+ShaneLong"; Assert.That(description.ToString(), Is.EqualTo(errorMessage)); }
public void Describe_mismatch() { var simonChurch = new SimonChurch(); var matcher = Is.InstanceOf(typeof(ShaneLong)); var description = new StringDescription(); matcher.DescribeMismatch(simonChurch, description); const string errorMessage = "Simon Church is an instance of NHamcrest.Tests.Core.IsInstanceOfTests+SimonChurch not" + " NHamcrest.Tests.Core.IsInstanceOfTests+ShaneLong"; Assert.That(description.ToString(), Is.EqualTo(errorMessage)); }