public void TestCoverage() { /* Search the current assembly for unit tests. */ var alltypes = GetType().Assembly.GetTypes(); var unitTestMethods = new List <MethodBase>(); foreach (var t in alltypes) { CoverageTester.CollectTestMethods(t, unitTestMethods); } /* Search the assembly that Autodesk.Fbx.Globals is in to find classes in * the FbxSdk namespace to test. */ alltypes = typeof(Autodesk.Fbx.Globals).Assembly.GetTypes(); var methodsToCover = new List <MethodBase>(); foreach (var t in alltypes) { if (t.Namespace != "Autodesk.Fbx") { continue; } /* don't take in delegates; we can't properly track coverage, * so just avoid the false negative */ if (t.IsSubclassOf(typeof(System.Delegate))) { continue; } /* take in the PINVOKE class but skip its helper classes */ bool skip = false; for (var u = t.DeclaringType; u != null; u = u.DeclaringType) { if (u.TypeHandle.Value == s_PINVOKEtype.TypeHandle.Value) { skip = true; break; } } if (skip) { continue; } CoverageTester.CollectMethodsToCover(t, methodsToCover); } List <MethodBase> hitMethods = new List <MethodBase>(); List <MethodBase> missedMethods = new List <MethodBase>(); var ok = CoverageTester.TestCoverage(methodsToCover, unitTestMethods, out hitMethods, out missedMethods); NUnit.Framework.Assert.That( () => ok, () => CoverageTester.MakeCoverageMessage(hitMethods, missedMethods)); }
public override void TestCoverage() { // This test is also responsible for FbxBindingTableBase and FbxBindingTableEntry base.TestCoverage(); CoverageTester.TestCoverage(typeof(FbxBindingTableBase), this.GetType()); CoverageTester.TestCoverage(typeof(FbxBindingTableEntry), this.GetType()); CoverageTester.TestCoverage(typeof(FbxEntryView), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEntryView), this.GetType()); CoverageTester.TestCoverage(typeof(FbxSemanticEntryView), this.GetType()); }
public override void TestCoverage() { // Alphabetical list, with FbxProperty at the top. base.TestCoverage(); CoverageTester.TestCoverage(typeof(FbxPropertyBool), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyDouble), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyDouble3), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEBlendMode), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEGateFit), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEWrapMode), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEProjectionType), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyMarkerELook), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyNullELook), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyString), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyELightType), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEAreaLightShape), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEDecayType), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyFloat), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyEInheritType), this.GetType()); CoverageTester.TestCoverage(typeof(FbxPropertyInt), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxDouble4), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxManager), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(T), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxQuaternion), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxVector4), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxIOPluginRegistry), this.GetType()); }
public virtual void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxAnimCurveDef), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxStatus), this.GetType()); }
public void TestCoverage() { CoverageTester.TestCoverage(typeof(FbxMesh.BadBracketingException), this.GetType()); }