public void ValidateIntToSufficientStatisticsConverter() { IntToSufficientStatisticsConverter itssConverter = new IntToSufficientStatisticsConverter(); DiscreteStatistics discreteStat = DiscreteStatistics.GetInstance(1); int convertedInt = itssConverter.ConvertBackward(discreteStat); Assert.AreEqual(1, convertedInt); DiscreteStatistics convertedDiscreteStat = itssConverter.ConvertForward('1') as DiscreteStatistics; Assert.IsNotNull(convertedDiscreteStat); }
public void ValidateIntToSufficientStatisticsConverter() { IntToSufficientStatisticsConverter itssConverter = new IntToSufficientStatisticsConverter(); DiscreteStatistics discreteStat = DiscreteStatistics.GetInstance(1); int convertedInt = itssConverter.ConvertBackward(discreteStat); Assert.AreEqual(1, convertedInt); DiscreteStatistics convertedDiscreteStat = itssConverter.ConvertForward('1') as DiscreteStatistics; Assert.IsNotNull(convertedDiscreteStat); }