コード例 #1
0
        public void TestFabrykiNieprawidlowyArgument()
        {
            var argument = "sUmakkkkancsaa";
            //IOperation expected = ;
            var actual = OperationsFactory.ChooseOperation(argument);

            Assert.IsNull(actual);
        }
コード例 #2
0
        public void TestFabrykiPrawidlowyArgument(string argument, Type expected)
        {
            var actual = OperationsFactory.ChooseOperation(argument);

            Assert.AreEqual(expected, actual.GetType());
        }