public void WhenTargetIsOldFormatFramework_ThenSetProperties(string moniker, TargetFrameworkType frameworkType, string version, string description) { var sut = new TargetFramework(moniker); Assert.That(sut.Moniker, Is.EqualTo(moniker)); Assert.That(sut.FrameworkType, Is.EqualTo(frameworkType)); Assert.That(sut.Version, Is.EqualTo(version)); Assert.That(sut.Description, Is.EqualTo(description)); }
public void WhenTargetIsDotNet6_ThenSetProperties(string moniker, TargetFrameworkType frameworkType, string version, string description, string os) { var sut = new TargetFramework(moniker); Assert.That(sut.Moniker, Is.EqualTo(moniker)); Assert.That(sut.FrameworkType, Is.EqualTo(frameworkType)); Assert.That(sut.Version, Is.EqualTo(version)); Assert.That(sut.Description, Is.EqualTo(description)); Assert.That(sut.OperatingSystem, Is.EqualTo(os)); }