Index: Core/Common/test/Core.Common.Gui.TestUtil/PluginTestHelper.cs
===================================================================
diff -u -r67284323e2785c651633d9c52049ba12a9c70e6a -rc1cc1f19fd990be1c975122d38e80d5cfd16f30c
--- Core/Common/test/Core.Common.Gui.TestUtil/PluginTestHelper.cs (.../PluginTestHelper.cs) (revision 67284323e2785c651633d9c52049ba12a9c70e6a)
+++ Core/Common/test/Core.Common.Gui.TestUtil/PluginTestHelper.cs (.../PluginTestHelper.cs) (revision c1cc1f19fd990be1c975122d38e80d5cfd16f30c)
@@ -34,9 +34,9 @@
{
///
/// Asserts that the given contains a definition for the combination of
- /// and .
+ /// and .
///
- /// Collection of definitions.
+ /// The collection of definitions.
/// The type of the data object for which property info is defined.
/// The type of the object which shows the data object properties.
/// The found property info.
@@ -56,7 +56,7 @@
}
///
- /// Asserts that a view info is defined in the collection of view infos given.
+ /// Asserts that a view info is defined in the collection of view infos given.
///
/// The collection of to search in.
/// The type of the data which is passed to the .
@@ -65,34 +65,33 @@
/// The that was found within the collection of .
/// Thrown when either:
///
- /// - is null
- /// - no can be found for type
- /// - the found does not define the expected or
- ///
- ///
+ /// - is null;
+ /// - no can be found for the combination of and ;
+ /// - the found does not define the expected .
+ ///
+ ///
public static ViewInfo AssertViewInfoDefined(IEnumerable viewInfos, Type dataType, Type viewDataType, Type viewType)
{
Assert.NotNull(viewInfos);
- ViewInfo viewInfo = viewInfos.SingleOrDefault(vi => vi.DataType == dataType);
- Assert.NotNull(viewInfo, "Could not find viewInfo for the dataType {0}", dataType);
- Assert.AreEqual(viewDataType, viewInfo.ViewDataType);
- Assert.AreEqual(viewType, viewInfo.ViewType);
+ ViewInfo viewInfo = viewInfos.SingleOrDefault(vi => vi.ViewDataType == viewDataType && vi.ViewType == viewType);
+ Assert.NotNull(viewInfo, "Could not find viewInfo for the combination of viewDataType {0} and viewType {1} ", viewDataType, viewType);
+ Assert.AreEqual(dataType, viewInfo.DataType);
return viewInfo;
}
///
- /// Asserts that a view info is defined in the collection of view infos given.
+ /// Asserts that a view info is defined in the collection of view infos given.
///
/// The collection of to search in.
/// The type of the data which is passed to the and is set on the view.
/// The type of the view.
/// The that was found within the collection of .
/// Thrown when either:
///
- /// - is null
- /// - no can be found for type
- /// - the found does not define the expected
- ///
+ /// - is null;
+ /// - no can be found for the combination of and .
+ ///
+ ///
public static ViewInfo AssertViewInfoDefined(IEnumerable viewInfos, Type dataType, Type viewType)
{
return AssertViewInfoDefined(viewInfos, dataType, dataType, viewType);