public virtual void test() { assertEquals(WeightingFunction.of("Linear"), WeightingFunctions.LINEAR); assertEquals(WeightingFunction.of("Sine"), WeightingFunctions.SINE); }
//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"); }