public void ArrayHelperCopyIsAPublicStaticMethod() { StructureTest test = Factory.CreateStructureTest(); test.AssertStaticMethod <int[], int[]>( array => ArrayHelper.Copy(array), new MemberAccessLevelVerifier(AccessLevels.Public)); test.AssertStaticMethod <DateTime[], DateTime[]>(array => ArrayHelper.Copy(array)); test.Execute(); }
public void ArrayContainsIsAPublicMethod() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertStaticMethod <int[], Predicate <int>, bool>( (array, c) => ArrayHelper.Contains(array, c), new MemberAccessLevelVerifier(AccessLevels.Public)); test.AssertStaticMethod <double[], Predicate <double>, bool>((array, c) => ArrayHelper.Contains(array, c)); test.Execute(); }
public void ArrayHelperSortIsPublicMethod() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertStaticMethod <string[], Func <string, string, int> >( (array, c) => ArrayHelper.Sort(array, c), new MemberAccessLevelVerifier(AccessLevels.Public)); test.AssertStaticMethod <double[], Func <double, double, int> >((array, c) => ArrayHelper.Sort(array, c)); test.Execute(); }
public void ArrayHelperMapIsAPublicMethod() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertStaticMethod <int[], Func <int, double>, double[]>( (array, f) => ArrayHelper.Map(array, f), new MemberAccessLevelVerifier(AccessLevels.Public)); test.AssertStaticMethod <double[], Func <double, int>, int[]>((array, f) => ArrayHelper.Map(array, f)); test.Execute(); }