Esempio n. 1
0
        public void CalculateChars_NegativeTest()
        {
            var expected = GetExpectedList();

            var actual = SymbolResults.CalculateChars("");

            Assert.AreNotEqual(expected.Count, actual.Count);
        }
Esempio n. 2
0
        public void CalculateChars_PositiveTest()
        {
            var expected = GetExpectedList();

            var actual = SymbolResults.CalculateChars(outputValue);

            Assert.IsTrue((from exp in expected
                           join act in actual on new { exp.Symbol, exp.Count } equals new { act.Symbol, act.Count }
                           select exp).Count() == expected.Count,
                          "The result is different with expected");
        }