CA-153178: Fix tests

This commit is contained in:
Mihaela Stoica 2014-12-05 14:29:40 +00:00
parent 0e03338a64
commit 1f4341147c
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ namespace XenAdminTests.UnitTests
private readonly Random _random = new Random();
/// <summary>
/// Gets all Types that derive from IXenObject except Folder.
/// Gets all Types that derive from IXenObject except Folder and DockerContainer
/// </summary>
public IEnumerable<Type> AllXenObjectTypesExceptFolder
{
@ -55,7 +55,7 @@ namespace XenAdminTests.UnitTests
{
foreach (Type t in typeof(IXenObject).Assembly.GetTypes())
{
if (!t.IsAbstract && typeof(IXenObject).IsAssignableFrom(t) && t.GetConstructor(new Type[0]) != null && !typeof(Folder).IsAssignableFrom(t))
if (!t.IsAbstract && typeof(IXenObject).IsAssignableFrom(t) && t.GetConstructor(new Type[0]) != null && !typeof(Folder).IsAssignableFrom(t) && !typeof(DockerContainer).IsAssignableFrom(t))
{
yield return t;
}

View File

@ -198,7 +198,7 @@ namespace XenAdmin.Model
DockerContainer other = obj as DockerContainer;
return other != null &&
name_label.Equals(other.name_label);
uuid.Equals(other.uuid);
}
@ -215,7 +215,7 @@ namespace XenAdmin.Model
if (other == null)
return 1;
return StringUtility.NaturalCompare(_name_label, other._name_label);
return StringUtility.NaturalCompare(_uuid, other.uuid);
}
#endregion