예제 #1
0
        public void OnPost_serializes_PgnText()
        {
            _model.PgnText = AnyPgn;

            SetupSerialiseAllGamesReturn(AnyPgn, AnyJson);

            var result = _model.OnPost();

            Assert.That(result, Is.TypeOf <PageResult>());
            Assert.That(_model.PgnText, Is.EqualTo(AnyPgn));
            Assert.That(_model.PgJson, Is.EqualTo(AnyJson));
        }