示例#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('-'));
 }
 /// <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('-'));
 }