public void ApartmantStorageCreate() { var enumTest = ApartmentStorageEnum.CSV; var factory = new SimpleStorageFactory(); Assert.NotNull(factory.CreateApartmentStorage(enumTest)); }
public void ErrorCreateApartmentStorage() { var enumTest = (ApartmentStorageEnum)10; var factory = new SimpleStorageFactory(); Assert.Throws <ArgumentException>(() => factory.CreateApartmentStorage(enumTest)); }