Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwyza-pi committed Jan 19, 2024
1 parent 759fcb1 commit 1646803
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Core/NUnitTestCore/CliObjectListTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ public void CanGetConfig()

Assert.NotNull(result);

Assert.AreEqual(5, result.Count);
Assert.AreEqual(6, result.Count);
}

[Test]
public void CanUseGobalFilter()
{
var config = GetConfig();

config.Views.Add(new View { ExclusionWildcard = "*" });
config.Tables.Add(new Table { ExclusionWildcard = "*" });

var result = CliConfigMapper.BuildObjectList(config);
Expand All @@ -63,7 +64,7 @@ public void CanAddStartsWithFilter()

Assert.NotNull(result);

Assert.AreEqual(1, result.Count);
Assert.AreEqual(2, result.Count);
}

[Test]
Expand All @@ -77,7 +78,7 @@ public void CanAddStartsWithFilter_2()

Assert.NotNull(result);

Assert.AreEqual(4, result.Count);
Assert.AreEqual(5, result.Count);
}

[Test]
Expand All @@ -93,7 +94,7 @@ public void CanAddStartsWithFilterAndExplicitInclude()

Assert.NotNull(result);

Assert.AreEqual(2, result.Count);
Assert.AreEqual(3, result.Count);
}

[Test]
Expand All @@ -107,7 +108,7 @@ public void CanAddEndsWithFilter()

Assert.NotNull(result);

Assert.AreEqual(3, result.Count);
Assert.AreEqual(4, result.Count);
}

[Test]
Expand All @@ -123,7 +124,7 @@ public void CanAddEndsWithFilterAndExplicitInclude()

Assert.NotNull(result);

Assert.AreEqual(3, result.Count);
Assert.AreEqual(4, result.Count);
}

[Test]
Expand All @@ -137,7 +138,7 @@ public void CanAddContainsFilter()

Assert.NotNull(result);

Assert.AreEqual(3, result.Count);
Assert.AreEqual(4, result.Count);
}

[Test]
Expand All @@ -153,7 +154,7 @@ public void CanAddContainsFilterAndExplicitInclude()

Assert.NotNull(result);

Assert.AreEqual(4, result.Count);
Assert.AreEqual(5, result.Count);
}

[Test]
Expand Down

0 comments on commit 1646803

Please sign in to comment.