Ejemplo n.º 1
0
        public void ClassTwoShouldUseLocallyLinkedPackage()
        {
            var consumer          = new ConsumerClassTwo();
            var stringFromPackage = consumer.ConsumeStringFromSecondPackage();

            var expectedString = System.Environment.GetEnvironmentVariable("TEST_EXPECTED_STRING_2") ?? "???";

            Assert.AreEqual($"consumed-by-class-two:{expectedString}", stringFromPackage);
        }
Ejemplo n.º 2
0
        public void ClassTwoShouldUseLocallyLinkedPackage()
        {
            var consumer       = new ConsumerClassTwo();
            var actualString   = consumer.ConsumeStringFromSecondPackage();
            var expectedString =
                System.Environment.GetEnvironmentVariable($"TEST_{nameof(ClassTwoShouldUseLocallyLinkedPackage)}")
                ?? "???";

            Assert.AreEqual($"consumed-by-class-two:{expectedString}", actualString);
        }