Пример #1
0
        public void ValidateSufficientStatisticsCompareTo()
        {
            SufficientStatistics suffStat  = SufficientStatistics.Parse("1");
            SufficientStatistics suffStat2 = SufficientStatistics.Parse("2");

            Assert.AreEqual(-1, suffStat.CompareTo(suffStat2));
        }
        public void ValidateSufficientStatisticsGetHashCode()
        {
            // Not used anymore - changes with each .NET release.
            SufficientStatistics boolStat1 = SufficientStatistics.Parse("1");

            Assert.AreEqual(372029325, boolStat1.GetHashCode());
        }
Пример #3
0
        public void ValidateSufficientStatisticsTryParse()
        {
            SufficientStatistics result        = null;
            SufficientStatistics continousStat = SufficientStatistics.Parse("1");

            Assert.IsTrue(SufficientStatistics.TryParse("1.25658", out result));
            Assert.IsFalse(continousStat.Equals(result));
        }
Пример #4
0
        public void ValidateSufficientStatisticsGetHashCode()
        {
            SufficientStatistics boolStat1 = SufficientStatistics.Parse("1");

            Assert.AreEqual(372029325, boolStat1.GetHashCode());
        }