Ejemplo n.º 1
0
 public void ShouldSetParent()
 {
     var nuGetPublisher = new NuGetPublisher();
     var subject = new VersionMandatory(nuGetPublisher);
     var nuGetVersion = subject.Version("1.2.3.4");
     Assert.That(nuGetPublisher._version, Is.EqualTo("1.2.3.4"));
     Assert.That(nuGetVersion, Is.Not.Null);
     Assert.That(nuGetVersion._parent, Is.EqualTo(nuGetPublisher));
 }
Ejemplo n.º 2
0
        public void ShouldSetParent()
        {
            var nuGetPublisher = new NuGetPublisher();
            var subject        = new VersionMandatory(nuGetPublisher);
            var nuGetVersion   = subject.Version("1.2.3.4");

            Assert.That(nuGetPublisher._version, Is.EqualTo("1.2.3.4"));
            Assert.That(nuGetVersion, Is.Not.Null);
            Assert.That(nuGetVersion._parent, Is.EqualTo(nuGetPublisher));
        }