public void ValidateMissingStatisticsTryParse() { SufficientStatistics result = null; MissingStatistics missingStat = MissingStatistics.GetInstance; Assert.IsTrue(MissingStatistics.TryParse("?", out result)); Assert.IsTrue(missingStat.Equals(result)); Assert.IsTrue(MissingStatistics.TryParse("missing", out result)); Assert.IsTrue(missingStat.Equals(result)); }
public void ValidateMissingStatisticsEquals() { SufficientStatistics suffStat = null; MissingStatistics missingStat = MissingStatistics.GetInstance; Assert.IsFalse(missingStat.Equals(suffStat)); suffStat = (SufficientStatistics)missingStat; Assert.IsTrue(missingStat.Equals(suffStat)); missingStat = MissingStatistics.GetInstance; suffStat = (SufficientStatistics)missingStat; Assert.IsTrue(missingStat.Equals(suffStat)); object suffStatObj = (object)missingStat; Assert.IsTrue(missingStat.Equals(suffStat)); }