public void TestNotCute(Girl notCuteGirl) { Cute cute = new Cute(notCuteGirl); _output.WriteLine("Running not cute test for girl: " + notCuteGirl); Assert.False(cute.IsCute(), "Girl is actually cute:\n" + notCuteGirl); }
public void TestCute(Girl cuteGirl) { Cute cute = new Cute(cuteGirl); _output.WriteLine("Running cute test for girl: " + cuteGirl); Assert.True(cute.IsCute(), "Girl is not cute, Reason: " + cute.Reason + "\n" + cuteGirl); //Assert.True(cute.IsCute(), "Girl is not cute, Reason: " + cute.Reason); }
public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (Cute.Length != 0) { hash ^= Cute.GetHashCode(); } if (Fraction != 0) { hash ^= Fraction.GetHashCode(); } if (Words.Length != 0) { hash ^= Words.GetHashCode(); } return(hash); }