Exemplo n.º 1
0
        public void WhenInvokingBeginInitAfterEndInit_ThenThrowsInvalidOperationOperation()
        {
            var codegen = new CodeGeneration();

            codegen.EndInit();

            Assert.Throws <InvalidOperationException>(() => codegen.BeginInit());
        }