public void OpenFileWorks() { VM.ViewModel vm = new VM.ViewModel(false) { OpenFileSourceProvider = new TestClass() }; vm.OpenFileCommand.Execute(null); Assert.IsNotNull(vm.LoadedAssembly); }
public void ReloadAsseblyListPopulated() { VM.ViewModel vm = new VM.ViewModel(false) { LoadedAssembly = typeof(VM.ViewModel).Assembly.Location }; vm.ReloadAssemblyCommand.Execute(null); Assert.AreNotEqual(0, vm.ObjectsList.Count); }
public void ObjectToDisplayChanges() { VM.ViewModel vm = new VM.ViewModel(false) { ObjectSelected = new VM.TypeItem(new TypeMetadata(typeof(Type))) }; vm.ShowCurrentObject.Execute(null); Assert.AreEqual(vm.ObjectSelected, vm.ObjectToDisplay); }
public void ReloadAssemblyChangesAssembly() { VM.ViewModel vm = new VM.ViewModel(false); IMetadata loadedAssemblyRepr = vm.LoadedAssemblyRepresentation; vm.LoadedAssembly = GetType().Assembly.Location; vm.ReloadAssemblyCommand.Execute(null); IMetadata reloadedAssemblyRepr = vm.LoadedAssemblyRepresentation; Assert.AreNotEqual(loadedAssemblyRepr, reloadedAssemblyRepr); }
public void ImportTracerTest() { VM.ViewModel vm = new VM.ViewModel(true); vm.EndInit(); Assert.IsNotNull(vm.Tracer); }