예제 #1
0
        public void TestSeparatorResultFormatterFormat()
        {
            var formatter = new SeparatorResultFormatter("|");
            var actual    = formatter.Format("player", "2");
            var expected  = "player            |   2 moves |";

            Assert.AreEqual(actual, expected);
        }
예제 #2
0
 public void TestSeparatorResultFormatterConstructorCreateInstanceNullSeparator()
 {
     var formatter = new SeparatorResultFormatter(null);
 }
예제 #3
0
        public void TestSeparatorResultFormatterConstructorCreateInstance()
        {
            var formatter = new SeparatorResultFormatter("|");

            Assert.IsInstanceOfType(formatter, typeof(SeparatorResultFormatter));
        }