예제 #1
0
 /// <summary>
 /// Asserts all of the arithmetic operators against the given factory.
 /// </summary>
 /// <param name="factory">The factory to assert the arithmetic operators for.</param>
 private static void AssertArithmenticOperations(OperationProviderFactory factory)
 {
     Assert.IsNotNull(factory.GetProvider('!'));
     Assert.IsNotNull(factory.GetProvider('^'));
     Assert.IsNotNull(factory.GetProvider('*'));
     Assert.IsNotNull(factory.GetProvider('/'));
     Assert.IsNotNull(factory.GetProvider('%'));
     Assert.IsNotNull(factory.GetProvider('+'));
     Assert.IsNotNull(factory.GetProvider('-'));
 }
예제 #2
0
 /// <summary>
 /// Asserts all of the arithmetic operators against the given factory.
 /// </summary>
 /// <param name="factory">The factory to assert the arithmetic operators for.</param>
 private static void AssertArithmenticOperations(OperationProviderFactory factory)
 {
     Assert.IsNotNull(factory.GetProvider('!'));
     Assert.IsNotNull(factory.GetProvider('^'));
     Assert.IsNotNull(factory.GetProvider('*'));
     Assert.IsNotNull(factory.GetProvider('/'));
     Assert.IsNotNull(factory.GetProvider('%'));
     Assert.IsNotNull(factory.GetProvider('+'));
     Assert.IsNotNull(factory.GetProvider('-'));
 }