예제 #1
0
        public VisualStudioOperationsFixture()
        {
            if (!Microsoft.Test.Apex.Operations.IsConfigured)
            {
                Microsoft.Test.Apex.Operations.Configure(new NuGetTestOperationConfiguration());
            }

            _operations = Microsoft.Test.Apex.Operations.Current;
            _verifier   = _operations.Get <IAssertionVerifier>();
            _verifier.AssertionDelegate = FailAction;
            _testLogger = _operations.Get <ITestLogger>();
        }
예제 #2
0
 /// <summary>
 /// Get the value of key. If the key does not exist the default value is returned.
 /// </summary>
 /// <param name="key">The key of the object.</param>
 /// <returns></returns>
 public T Get(string key)
 {
     return(_operations.Get(key));
 }