예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }