1+ // Copyright (c) Microsoft Corporation. All rights reserved.
2+ // Licensed under the MIT License.
3+
4+ namespace Microsoft . Azure . Management . StorageCache . Tests
5+ {
6+ using System . Collections . Generic ;
7+ using Microsoft . Azure . Management . StorageCache . Models ;
8+ using Microsoft . Azure . Management . StorageCache . Tests . Fixtures ;
9+ using Microsoft . Azure . Management . StorageCache . Tests . Utilities ;
10+ using Microsoft . Azure . Test . HttpRecorder ;
11+ using Microsoft . Rest ;
12+ using Xunit ;
13+ using Xunit . Abstractions ;
14+
15+ /// <summary>
16+ /// Defines the <see cref="CustomizationTests" />.
17+ /// </summary>
18+ [ Collection ( "StorageCacheCollection" ) ]
19+ public class CustomizationTests
20+ {
21+ /// <summary>
22+ /// Defines the testOutputHelper.
23+ /// </summary>
24+ private readonly ITestOutputHelper testOutputHelper ;
25+
26+ /// <summary>
27+ /// Initializes a new instance of the <see cref="CustomizationTests"/> class.
28+ /// </summary>
29+ /// <param name="testOutputHelper">The testOutputHelper<see cref="ITestOutputHelper"/>.</param>
30+ public CustomizationTests ( ITestOutputHelper testOutputHelper )
31+ {
32+ this . testOutputHelper = testOutputHelper ;
33+ }
34+
35+ /// <summary>
36+ /// Verify the ApiVersion property of the client is default to the correct version."
37+ /// </summary>
38+ [ Fact ]
39+ public void TestApiVersion ( )
40+ {
41+ RecordedDelegatingHandler recordedDelegatingHandlers = new RecordedDelegatingHandler ( ) ;
42+ ServiceClientCredentials credentials = new TokenCredentials ( "abc" ) ;
43+ StorageCacheManagementClient storageCacheManagementClient = new StorageCacheManagementClient ( credentials , recordedDelegatingHandlers ) ;
44+ Assert . Equal ( Constants . DefaultAPIVersion , storageCacheManagementClient . ApiVersion ) ;
45+ }
46+ }
47+ }
0 commit comments