Beispiel #1
0
 public virtual void test()
 {
     assertEquals(WeightingFunction.of("Linear"), WeightingFunctions.LINEAR);
     assertEquals(WeightingFunction.of("Sine"), WeightingFunctions.SINE);
 }
Beispiel #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expectedExceptions = IllegalArgumentException.class) public void testBadName()
        public virtual void testBadName()
        {
            WeightingFunction.of("Random");
        }