public void CreateFactoryTest() { var oper = SimpleFactory.CreateFactory("+"); oper.NumberA = 1; oper.NumberA = 1; Assert.AreSame(2, oper.GetResult()); }