public void TestOpenWebNUnitCommandPropertyReturnsCommandToOpenNUnitWebsite() { AboutViewModelForTest model = new AboutViewModelForTest(); ICommand command = model.OpenWebNUnitCommand; Assert.IsNotNull(command); Assert.IsTrue(command.CanExecute(null)); command.Execute(null); Assert.AreEqual("https://nunit.org/", model.Uri.AbsoluteUri); }
public void TestOpenWebProjectCommandPropertyReturnsCommandToOpenProjectWebsite() { AboutViewModelForTest model = new AboutViewModelForTest(); ICommand command = model.OpenWebProjectCommand; Assert.IsNotNull(command); Assert.IsTrue(command.CanExecute(null)); command.Execute(null); Assert.AreEqual("https://github.com/bstadick/XamarinNUnitRunner", model.Uri.AbsoluteUri); }
public void TestOpenWebXamarinCommandPropertyReturnsCommandToOpenXamarinWebsite() { AboutViewModelForTest model = new AboutViewModelForTest(); ICommand command = model.OpenWebXamarinCommand; Assert.IsNotNull(command); Assert.IsTrue(command.CanExecute(null)); command.Execute(null); Assert.AreEqual("https://xamarin.com/platform", model.Uri.AbsoluteUri); }