Beispiel #1
0
        public void CreateShipWrong()
        {
            SimpleFactory factory = SimpleFactory.Instance;
            var           ship    = factory.CreateFrigate("asdf");

            Assert.IsNull(ship);
        }
Beispiel #2
0
        public void CreateShipEmpty()
        {
            SimpleFactory factory = SimpleFactory.Instance;
            var           ship    = factory.CreateFrigate(null);

            Assert.IsNull(ship);
        }
Beispiel #3
0
        public void CreateShip()
        {
            SimpleFactory factory = SimpleFactory.Instance;
            var           ship    = factory.CreateFrigate("cobalt");

            Assert.IsNotNull(ship);
        }