diff --git a/test/csharp/test_SessionState.cs b/test/csharp/test_SessionState.cs index 1963e5e28d..adfc9e7a38 100644 --- a/test/csharp/test_SessionState.cs +++ b/test/csharp/test_SessionState.cs @@ -27,7 +27,7 @@ namespace PSTests ExecutionContext executionContext = new ExecutionContext(engine, hostInterface, iss); SessionStateInternal sessionState = new SessionStateInternal(executionContext); Collection drives = sessionState.Drives(null); - Assert.True(drives.Count>0); + Assert.NotNull(drives); } } }