RSpec-Let by baylor

<PackageReference Include="RSpec-Let" Version="1.1.1" />

.NET API 6,656 bytes



Legend

  •  Assembly
  •  Namespace
  •  Class
  •  Interface or Abstract Class
  •  Static Class
  •  Struct
  •  Enum
  •  Delegate
  •  Grayed out == non-public

 RSpec-Let 1.1.1

When testing in C# it's not unusual to test instances of a class. The problem we all face is having a place to initialize our objects. 1. Create a field that is initialized and reset on `[TearDown]`? 2. Create a null field that is initialized during `[SetUp]`? 3. Duplicate the initialization in every `[Test]`? All three of these are valid, and unfortunately, all three can be found in the same project and sometimes the same test!

<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
  <metadata>
    <id>RSpec-Let</id>
    <version>1.1.1</version>
    <title>RSpec Let</title>
    <authors>baylor</authors>
    <owners>baylor</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <licenseUrl>https://github.com/BaylorRae/Let.cs/blob/master/LICENSE</licenseUrl>
    <description>When testing in C# it's not unusual to test instances of a class. The problem we
      all face is having a place to initialize our objects.

      1. Create a field that is initialized and reset on `[TearDown]`?
      2. Create a null field that is initialized during `[SetUp]`?
      3. Duplicate the initialization in every `[Test]`?

      All three of these are valid, and unfortunately, all three can be found in the
      same project and sometimes the same test!</description>
    <copyright>Baylor Rae' 2020</copyright>
    <tags>NUnit MSTest XUnit RSpec memoization helper dependency injection</tags>
    <repository url="https://github.com/BaylorRae/Let.cs" />
    <dependencies>
      <group targetFramework=".NETFramework4.5" />
      <group targetFramework=".NETStandard2.0" />
    </dependencies>
  </metadata>
</package>