Exemple #1
0
        public void Equals_IsNotEqual()
        {
            var result1 = new StatisticsCalculationResult(42, 42, 45, 45, 3, 3, 9, 9, 100);
            var result2 = new StatisticsCalculationResult(21, 21, 45, 45, 3, 3, 9, 9, 100);

            Assert.False(result1.Equals(result2));
            Assert.False(result1.Equals((object)result2));
            Assert.False(result1.Equals(null));
        }
Exemple #2
0
        public void Equals_IsEqual()
        {
            var result1 = new StatisticsCalculationResult(42, 42, 45, 45, 3, 3, 9, 9, 100);
            var result2 = new StatisticsCalculationResult(42, 42, 45, 45, 3, 3, 9, 9, 100);

            Assert.True(result1.Equals(result2));
            Assert.True(result1.Equals((object)result2));
            Assert.True(result1.Equals(result1));
        }