[Test] public void Test_CanLoadApplication_With_White() { //---------------Set up test pack------------------- var app = Application.Launch(@"..\..\..\ReplaceItWpf\bin\Debug\ReplaceItWpf.exe"); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- //---------------Test Result ----------------------- Assert.IsNotNull(app); app.Kill(); }
[Test] public void Test_CanGetMainWindow() { //---------------Set up test pack------------------- var app = Application.Launch(@"..\..\..\ReplaceItWpf\bin\Debug\ReplaceItWpf.exe"); var mainWindow = app.GetWindow("MainWindow", InitializeOption.NoCache); Assert.IsNotNull(mainWindow); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- //---------------Test Result ----------------------- Assert.IsNotNull(app); app.Kill(); }
This website is best viewed in Internet Explorer 7 & 8; Firefox 3.6.11; Opera 10.63; & Safari 4.