Sha256: d60032cc35fd1334783cb0b63102b7e6de58de86a6d3599668b678d0e09a9a5b

Contents?: true

Size: 655 Bytes

Versions: 166

Compression:

Stored size: 655 Bytes

Contents

using Generators.Input;

namespace Generators.Output
{
    public class TestMethodBodyWithExceptionCheck : TestMethodBody
    {
        public TestMethodBodyWithExceptionCheck(CanonicalDataCase canonicalDataCase, CanonicalData canonicalData) : base(canonicalDataCase, canonicalData)
        {
            AssertTemplateName = "AssertThrowsException";
            AssertTemplateParameters = new { ExceptionType, Data.TestedValue };
        }

        public override bool UseVariableForExpected => false;
        public override bool UseVariableForTested => false;

        private string ExceptionType => CanonicalDataCase.ExceptionThrown.Name;
    }
}

Version data entries

166 entries across 166 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.179 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.178 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.177 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.176 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.175 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.174 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.173 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.172 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.171 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.170 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.169 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.167 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.166 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.165 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.164 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.163 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.162 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.161 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs
trackler-2.2.1.160 tracks/csharp/generators/Output/TestMethodBodyWithExceptionCheck.cs