We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c9d5e3 commit 9d9bbccCopy full SHA for 9d9bbcc
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/AppContext/AppContextTests.cs
@@ -1,6 +1,7 @@
1
// Licensed to the .NET Foundation under one or more agreements.
2
// The .NET Foundation licenses this file to you under the MIT license.
3
4
+using System.IO;
5
using Xunit;
6
7
namespace System.Tests
@@ -28,5 +29,11 @@ public void AppContext_ThrowTest()
28
29
{
30
AssertExtensions.Throws<ArgumentNullException>("name", () => AppContext.SetData(null, 123));
31
}
32
+
33
+ [Fact]
34
+ public void BaseDirectory_PathRooted()
35
+ {
36
+ Assert.True(Path.IsPathRooted(AppContext.BaseDirectory), "BaseDirectory should be a rooted path");
37
+ }
38
39
0 commit comments