Skip to content

Commit 18f1c99

Browse files
committed
Fix unit test expectation
Now that we compute the goalstate, we do validate that all files are valid. Closes #254
1 parent 0b2495b commit 18f1c99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/LibraryManager.Test/LibraryInstallationStateTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ public async Task IsValidAsync_State_HasUnknownLibraryFile()
157157

158158
OperationResult<LibraryInstallationGoalState> result = await state.IsValidAsync(_dependencies);
159159

160-
// IsValidAsync does not validate library files
161-
// Issue https://github.com/aspnet/LibraryManager/issues/254 should fix that
162-
Assert.IsTrue(result.Success);
160+
Assert.IsFalse(result.Success);
161+
Assert.AreEqual("LIB018", result.Errors[0].Code);
163162
}
164163

165164
[TestMethod]

0 commit comments

Comments
 (0)