Sha256: eaf840eeaf3f9b61f205511fbeece0878946e3fa096ae07352908ddc7c2915c2

Contents?: true

Size: 415 Bytes

Versions: 5

Compression:

Stored size: 415 Bytes

Contents

using System;
using System.Collections.Generic;
using System.Linq;

namespace Generators.Output
{
    public class BooleanTestMethodGenerator : TestMethodGenerator
    {
        protected override IEnumerable<string> Body => Variables.Append($"Assert.{BooleanAssertMethod}({TestedMethodInvocation});");

        private string BooleanAssertMethod => Convert.ToBoolean(CanonicalDataCase.Expected).ToString();
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trackler-2.1.0.53 tracks/csharp/generators/Output/BooleanTestMethodGenerator.cs
trackler-2.1.0.52 tracks/csharp/generators/Output/BooleanTestMethodGenerator.cs
trackler-2.1.0.51 tracks/csharp/generators/Output/BooleanTestMethodGenerator.cs
trackler-2.1.0.50 tracks/csharp/generators/Output/BooleanTestMethodGenerator.cs
trackler-2.1.0.49 tracks/csharp/generators/Output/BooleanTestMethodGenerator.cs