public void WriteDoubleTest()
 {
     var fio = new Mock<IFileIO>(MockBehavior.Strict);
     fio.Setup(io => io.WriteDouble(1.2345));
     FormattedWriter fw = new FormattedWriter(fio.Object);
     fw.WriteDouble(1.2345);
     fio.Verify(f => f.WriteDouble(1.2345), Times.Once());
 }
        public void WriteDoubleTest()
        {
            var fio = new Mock <IFileIO>(MockBehavior.Strict);

            fio.Setup(io => io.WriteDouble(1.2345));
            FormattedWriter fw = new FormattedWriter(fio.Object);

            fw.WriteDouble(1.2345);
            fio.Verify(f => f.WriteDouble(1.2345), Times.Once());
        }