public void ArtistCreationWithConcreteFactory2() { AbstractFactory factory = ConcreteFactory2.GetFactory(); IPerson x = factory.CreateArtist(); Assert.AreSame(x.GetType(), typeof(Dancer)); }