コード例 #1
0
        public void when_not_on_a_market_day_do_thing2() {
            var clock = new FakeClock(
                Instant.FromUtc(2016, 5, 8, 0, 0));
            var stock = new Stock();
            var marketDay = new MarketDay(
                Instant.FromUtc(2016, 5, 8, 0, 0));

            var myClass = new MyClassNodaTime(stock, marketDay, clock);

            Assert.Equal("Thing2 done!", myClass.thingState);
        }
コード例 #2
0
        public void when_not_on_a_market_day_do_thing2()
        {
            var clock = new FakeClock(
                Instant.FromUtc(2016, 5, 8, 0, 0));
            var stock     = new Stock();
            var marketDay = new MarketDay(
                Instant.FromUtc(2016, 5, 8, 0, 0));

            var myClass = new MyClassNodaTime(stock, marketDay, clock);

            Assert.Equal("Thing2 done!", myClass.thingState);
        }