public void Show_WillSetWindowTitleToTypeName_WhenPreviewingWindow() { var loader = new Fake_Loader(); var dummyWindow = new Window(); loader.ForcedCreatedInstance = dummyWindow; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual("dummyNamespace.dummyType", loader.WindowDisplayedTitleText); }
public void Show_WillDisplayUserControl_WhenUserControlTypeInstantiated() { var loader = new Fake_Loader(); var dummyUserControl = new UserControl(); loader.ForcedCreatedInstance = dummyUserControl; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual(dummyUserControl, loader.WindowDisplayed.Content); }
public void Show_WillSetHostingWindowTitleToTypeName_WhenPreviewingUserControl() { var loader = new Fake_Loader(); var dummyUserControl = new UserControl(); loader.ForcedCreatedInstance = dummyUserControl; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual("dummyNamespace.dummyType", loader.WindowDisplayed.Title); }
public void Show_WillDisplayWindow_WhenWindowTypeInstantiated() { var loader = new Fake_Loader(); var dummyWindow = new Window(); loader.ForcedCreatedInstance = dummyWindow; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual(dummyWindow, loader.WindowDisplayed); }
public void Show_WillSetWindowTitleToTypeName_WhenPreviewingWindow() { var loader = new Fake_Loader(); var dummyWindow = new Window(); loader.ForcedCreatedInstance = dummyWindow; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual("dummyNamespace.dummyType", loader.WindowDisplayedTitleText); }
public void Show_WillSetHostingWindowTitleToTypeName_WhenPreviewingUserControl() { var loader = new Fake_Loader(); var dummyUserControl = new UserControl(); loader.ForcedCreatedInstance = dummyUserControl; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual("dummyNamespace.dummyType", loader.WindowDisplayed.Title); }
public void Show_WillDisplayWindow_WhenWindowTypeInstantiated() { var loader = new Fake_Loader(); var dummyWindow = new Window(); loader.ForcedCreatedInstance = dummyWindow; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual(dummyWindow, loader.WindowDisplayed); }
public void Show_WillDisplayUserControl_WhenUserControlTypeInstantiated() { var loader = new Fake_Loader(); var dummyUserControl = new UserControl(); loader.ForcedCreatedInstance = dummyUserControl; loader.Load("dummyAssembly.dll", "dummyNamespace.dummyType"); loader.Show(); Assert.AreEqual(dummyUserControl, loader.WindowDisplayed.Content); }