Debian Codegraph @

external/corefx/src/Microsoft.Win32.Registry/tests/RegistryKey/RegistryKey_Get_View.cs

raw
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 // See the LICENSE file in the project root for more information.
4
5 using System;
6 using Xunit;
7
8 namespace Microsoft.Win32.RegistryTests
9 {
10 public class RegistryKey_Get_View : RegistryTestsBase
11 {
12 [Fact]
13 public void NegativeTests()
14 {
15 Assert.Throws<ObjectDisposedException>(() =>
16 {
17 TestRegistryKey.Dispose();
18 return TestRegistryKey.View;
19 });
20 }
21 }
22 }