예제 #1
0
        public void OnImportsSatisfied_WhenCalled_SubscribesToClientConnectedNotification()
        {
            //Arrange
            var vm = new LicenseInfoViewModel();
            var communicationServiceMock = Mock.Create<ICommunicationService>();
            vm.CommunicationService = communicationServiceMock;
            Mock.ArrangeSet(() => communicationServiceMock.ClientConnectedNotification += null).IgnoreArguments().OccursOnce();

            vm.OnImportsSatisfied();

            //Assert
            Mock.AssertAll(communicationServiceMock);
        }
예제 #2
0
 public void PropertiesTest()
 {
     var vm = new LicenseInfoViewModel();
     TestsHelper.TestPublicPropertiesGetSet(vm, x => vm.Model, x => vm.Icon);
 }