public void CanConstruct() { _options.NUnit2NugetPackageVersion.Returns("1"); _options.NUnit3NugetPackageVersion.Returns("2"); _options.XUnitNugetPackageVersion.Returns("3"); _options.MsTestNugetPackageVersion.Returns("4"); _options.FakeItEasyNugetPackageVersion.Returns("5"); _options.MoqNugetPackageVersion.Returns("6"); _options.NSubstituteNugetPackageVersion.Returns("7"); _options.RhinoMocksNugetPackageVersion.Returns("8"); _testClass = new MutableVersioningOptions(_options); Assert.That(_testClass.NUnit2NugetPackageVersion, Is.EqualTo(_options.NUnit2NugetPackageVersion)); Assert.That(_testClass.NUnit3NugetPackageVersion, Is.EqualTo(_options.NUnit3NugetPackageVersion)); Assert.That(_testClass.XUnitNugetPackageVersion, Is.EqualTo(_options.XUnitNugetPackageVersion)); Assert.That(_testClass.MsTestNugetPackageVersion, Is.EqualTo(_options.MsTestNugetPackageVersion)); Assert.That(_testClass.FakeItEasyNugetPackageVersion, Is.EqualTo(_options.FakeItEasyNugetPackageVersion)); Assert.That(_testClass.MoqNugetPackageVersion, Is.EqualTo(_options.MoqNugetPackageVersion)); Assert.That(_testClass.NSubstituteNugetPackageVersion, Is.EqualTo(_options.NSubstituteNugetPackageVersion)); Assert.That(_testClass.RhinoMocksNugetPackageVersion, Is.EqualTo(_options.RhinoMocksNugetPackageVersion)); }
public void SetUp() { _options = Substitute.For <IVersioningOptions>(); _testClass = new MutableVersioningOptions(_options); }