public void ShouldInstantiateCorrectObjects() { TestLayoutFactory testFactory = new TestLayoutFactory(); Assert.IsTrue(testFactory.CreateFieldPublic(EmptySpaceField.IDENTIFIER) is EmptySpaceField); Assert.IsTrue(testFactory.CreateFieldPublic(ChairField.IDENTIFIER) is ChairField); Assert.IsTrue(testFactory.CreateFieldPublic(TableField.IDENTIFIER) is TableField); Assert.IsTrue(testFactory.CreateFieldPublic(FlowerField.IDENTIFIER) is FlowerField); Assert.IsTrue(testFactory.CreateFieldPublic(PathwayField.IDENTIFIER) is PathwayField); }
public void ShouldReturnNullIfNoObjectFound() { TestLayoutFactory testFactory = new TestLayoutFactory(); Assert.AreEqual(null, testFactory.CreateFieldPublic('r')); }