예제 #1
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     ReadDigTag.SetupGet(t => t.IsWritten).Returns(true);
     ReadDigTag.Setup(t => t.GetWrittenValue()).Returns(true);
     ReadNumericTag.SetupGet(t => t.IsWritten).Returns(true);
     NumericValue = RandomGenerator.GetRandomInt32();
     ReadNumericTag.Setup(t => t.GetWrittenValue()).Returns(NumericValue);
 }
예제 #2
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     ReadDigTag.SetupGet(t => t.IsRead).Returns(true);
     ReadNumericTag.SetupGet(t => t.IsRead).Returns(true);
 }
예제 #3
0
 public void ForNumericTag()
 {
     ReadNumericTag.Verify(t => t.UpdateValue(null), Times.Once());
 }
예제 #4
0
 public void ForNumericTag()
 {
     ReadNumericTag.Verify(t => t.UpdateValue(Result.NumReadValues[0]), Times.Once());
 }