Exemplo n.º 1
0
        public void ConstructorInitializesProperties() {
            // Act
            Span tok = new TransitionSpan(TestLocation, "foo", true);

            // Assert
            Assert.AreEqual(SpanKind.Transition, tok.Kind);
            Assert.AreEqual("foo", tok.Content);
            Assert.AreEqual(TestLocation, tok.Start);
            Assert.IsTrue(tok.Hidden);
        }
Exemplo n.º 2
0
        public void ConstructorWithoutHiddenParameterInitializesHiddenPropertyToFalse() {
            // Act
            Span tok = new TransitionSpan(TestLocation, "foo");

            // Assert
            Assert.AreEqual(SpanKind.Transition, tok.Kind);
            Assert.AreEqual("foo", tok.Content);
            Assert.AreEqual(TestLocation, tok.Start);
            Assert.IsFalse(tok.Hidden);
        }