Пример #1
0
        public void SetUp()
        {
            var record = TestContext.CurrentContext.Test.Name;

            if (cassette.Contains(record))
            {
                Context.Player.Play(record);
            }
            else
            {
                Context.Player.Record(record);
            }
        }
Пример #2
0
        public void Contain_RecordNotExists_ReturnsFalse()
        {
            var cassette = new Cassette(Context.Cassette1);

            Assert.IsFalse(cassette.Contains("wrong"));
        }
Пример #3
0
        public void Contain_RecordExists_ReturnsTrue()
        {
            var cassette = new Cassette(Context.Cassette1);

            Assert.IsTrue(cassette.Contains("record1"));
        }