public void MainWindowIsNull() { SceneFactory target = new SceneFactory(); Exception actual = null; try { Screen screen = target.CreateScene(null, 7); } catch (NullReferenceException e) { actual = e; } Assert.IsNotNull(actual); }
public void NegativIndex() { SceneFactory target = new SceneFactory(); Exception actual = null; try { Screen screen = target.CreateScene(new StartUpViewModel(), -1); } catch (InvalidIndexExceptionForScene e) { actual = e; } Assert.IsNotNull(actual); }
public void Warehouse() { ActivateItem(sceneFactory.CreateScene(2)); CurrentMenu = "Raktár"; }
public void GetSummaryViewModel() { SceneFactory target = new SceneFactory(); Screen actual = target.CreateScene(new StartUpViewModel(), 7); Assert.IsTrue(actual is PizzaSummaryViewModel); }
public void GetCheeseViewModel() { SceneFactory target = new SceneFactory(); Screen actual = target.CreateScene(new StartUpViewModel(), 6); Assert.IsTrue(actual is ChooseCheeseViewModel); }
public void GetToppingViewModel() { SceneFactory target = new SceneFactory(); Screen actual = target.CreateScene(new StartUpViewModel(), 5); Assert.IsTrue(actual is SelectToppingsViewModel); }
public void GetInformationViewModel() { SceneFactory target = new SceneFactory(); Screen actual = target.CreateScene(new StartUpViewModel(), 1); Assert.IsTrue(actual is CustomerDataViewModel); }