public void TemplateHasCorrectSymbols() { using (ApprovalResults.ForScenario(nameof(NativeTests))) { var text = Ildasm.Decompile(TestResult.AssemblyPath, "Costura.AssemblyLoader"); Approvals.Verify(text); } }
public void Verify() { var verify = Ildasm.Decompile(GetAssemblyPath()); #if (NET46) ApprovalTests.Approvals.Verify(verify); #endif }
public Task DecompileExample() { var decompile = Ildasm.Decompile(testResult.AssemblyPath, "AssemblyToProcess.Example"); var settings = new VerifySettings(); settings.AutoVerify(); return(Verifier.Verify(decompile, settings)); }
public void Verify() { var verify = Ildasm.Decompile(GetAssemblyPath()); using (ApprovalResults.UniqueForRuntime()) { Approvals.Verify(verify); } }
public void VerifyMethod() { var verify = Ildasm.Decompile(GetAssemblyPath(), "DummyAssembly.Class1::Method"); using (ApprovalResults.UniqueForRuntime()) { Approvals.Verify(verify); } }
public void TemplateHasCorrectSymbols() { var dataPoints = GetScenarioName(); using (ApprovalResults.ForScenario(dataPoints)) { var text = Ildasm.Decompile(TestResult.AssemblyPath, "Costura.AssemblyLoader"); Approvals.Verify(text); } }
public void TemplateHasCorrectSymbols() { #if DEBUG var dataPoints = GetType().Name + "Debug"; #else var dataPoints = GetType().Name + "Release"; #endif using (ApprovalResults.ForScenario(dataPoints)) { var text = Ildasm.Decompile(TestResult.AssemblyPath, "Costura.AssemblyLoader"); Approvals.Verify(text, TrimLineEndings); } }
public void AbstractImplementation_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenariosAbstractImplementation")); }
public void Enum_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledEnum")); }
public Task GenericClassWithReferenceTypeConstraints() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "GenericClassWithReferenceTypeConstraints`1"))); }
public void Interface_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "ILoggerIsEnabledScenarios")); }
public void LogTrace_In_Switch_With_After_Code_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenarios::LogTrace_In_Switch_With_After_Code")); }
public void LogTrace_In_Exception_Catch_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenarios::LogTrace_In_Exception_Catch")); }
public Task PublicNestedInsideNonPublic() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "NonPublicWithNested"))); }
public void LogTraceWithEnabled_With_Code_Before_And_After_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenarios::LogTraceWithEnabled_With_Code_Before_And_After")); }
public Task SkipIXamlMetadataProvider() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "XamlMetadataProvider"))); }
public Task SpecialClass_release() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "SpecialClass"))); }
public Task SimpleClassNoAssert() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "SimpleClass"))); }
public Task InterfaceBadAttributes() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "InterfaceBadAttributes"))); }
public Task Indexers() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "Indexers"))); }
public void LogInformation_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenarios::LogInformation")); }
public Task ClassWithPrivateMethodNoAssert() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "ClassWithPrivateMethod"))); }
public void LogCritical_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenarios::LogCritical")); }
public void ClassWithBrokenReplacement() { Approvals.Verify(Ildasm.Decompile(testResult.AssemblyPath, "ClassWithBrokenReplacement")); }
public void LogTrace_Multiple_With_Second_IsEnabled_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenarios::LogTrace_Multiple_With_Second_IsEnabled")); }
public void ClassWithDateTime() { Approvals.Verify(Ildasm.Decompile(testResult.AssemblyPath, "ClassWithDateTime")); }
public void LogTrace_In_Exception_With_Before_And_After_Code_In_Try_Decompiled() { Approvals.Verify(Ildasm.Decompile(_testResult.AssemblyPath, "LoggerIsEnabledScenarios::LogTrace_In_Exception_With_Before_And_After_Code_In_Try")); }
public void ClassWithGenericUsage() { Approvals.Verify(Ildasm.Decompile(testResult.AssemblyPath, "ClassWithGenericUsage")); }
public Task UnsafeClass() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "UnsafeClass"))); }
public Task GenericClass() { return(Verify(Ildasm.Decompile(AssemblyWeaver.AfterAssemblyPath, "GenericClass`1"))); }