示例#1
0
        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));
        }
示例#2
0
        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));
        }