Sha256: c5fae6c8b65bbeb0e6e46074a43178fdf5d3d3247d4f24e367939acd562deca7
Contents?: true
Size: 508 Bytes
Versions: 22
Compression:
Stored size: 508 Bytes
Contents
using System.Collections.Generic; using System.Linq; namespace Generators.Output { public class ExceptionTestMethodGenerator : TestMethodGenerator { protected override IEnumerable<string> Body => Variables.Append($"Assert.Throws<{ExceptionType}>(() => {TestedValue});"); protected override bool UseVariableForExpected => false; protected override bool UseVariableForTested => false; private string ExceptionType => CanonicalDataCase.ExceptionThrown.Name; } }
Version data entries
22 entries across 22 versions & 1 rubygems