Index: test/DeltaShell/DeltaShell.Tests/Gui/Forms/PropertyGridView/PropertyResolverTest.cs =================================================================== diff -u -ra9ee3a5708adb2ab6d84460265bed2fd7dd59767 -r702f1273c93efbe2377eed1179c28d6f92f56bab --- test/DeltaShell/DeltaShell.Tests/Gui/Forms/PropertyGridView/PropertyResolverTest.cs (.../PropertyResolverTest.cs) (revision a9ee3a5708adb2ab6d84460265bed2fd7dd59767) +++ test/DeltaShell/DeltaShell.Tests/Gui/Forms/PropertyGridView/PropertyResolverTest.cs (.../PropertyResolverTest.cs) (revision 702f1273c93efbe2377eed1179c28d6f92f56bab) @@ -1,12 +1,8 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using DelftTools.Shell.Gui; -using DelftTools.TestUtils; using DelftTools.Utils.PropertyBag.Dynamic; -using DeltaShell.Gui; using DeltaShell.Gui.Forms.PropertyGridView; using NUnit.Framework; -using Rhino.Mocks; namespace DeltaShell.Tests.Gui.Forms.PropertyGrid { @@ -28,7 +24,7 @@ // Setup var propertyInfos = new List { - new PropertyInfo>() + new PropertyInfo>() }; // Call @@ -38,15 +34,14 @@ Assert.IsTrue(objectProperties is DynamicPropertyBag); Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } - [Test] public void GetObjectProperties_WhenOnePropertyInfoIsFoundButAdditionalChecksFail_ReturnNull() { // Setup var propertyInfos = new List { - new PropertyInfo>() + new PropertyInfo>() { AdditionalDataCheck = o => false } @@ -72,13 +67,12 @@ new PropertyInfo>() // specifically for C }; - // Call var objectProperties = PropertyResolver.GetObjectProperties(propertyInfos, new C()); //we ask for C // Assert Assert.AreSame(typeof(SimpleProperties), - ((DynamicPropertyBag)objectProperties).GetContentType(), "we got A, expected C"); + ((DynamicPropertyBag) objectProperties).GetContentType(), "we got A, expected C"); } [Test] @@ -96,7 +90,7 @@ // Setup Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } [Test] @@ -109,13 +103,12 @@ new PropertyInfo>() }; - // Call var objectProperties = PropertyResolver.GetObjectProperties(propertyInfos, new D()); // Assert Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } [Test] @@ -139,7 +132,7 @@ // Assert Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } [Test] @@ -160,7 +153,7 @@ // Assert Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(SimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } [Test] @@ -181,7 +174,7 @@ // Assert Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(OtherSimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(OtherSimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } [Test] @@ -199,7 +192,7 @@ // Assert Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(DerivedSimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(DerivedSimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } [Test] @@ -223,7 +216,7 @@ // Assert Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(DerivedSimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(DerivedSimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } [Test] @@ -274,7 +267,7 @@ // Assert Assert.IsTrue(objectProperties is DynamicPropertyBag); - Assert.AreSame(typeof(DerivedSimpleProperties), ((DynamicPropertyBag)objectProperties).GetContentType()); + Assert.AreSame(typeof(DerivedSimpleProperties), ((DynamicPropertyBag) objectProperties).GetContentType()); } # endregion