Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }