" ;;{0}" +
" DoB();{0}" +
" ;{0}" +
-#if NET_2_0
"A{0}" +
-#else
- " A{0}" +
-#endif
" DoC();{0}" +
"}}{0}", NewLine), Generate (), "#3");
" ;;{0}" +
" DoB();{0}" +
" ;{0}" +
-#if NET_2_0
"A{0}" +
-#else
- " A{0}" +
-#endif
" DoC();{0}" +
"}}{0}" +
"else {{{0}" +
" DoD();{0}" +
-#if NET_2_0
"B{0}" +
-#else
- " B{0}" +
-#endif
" ;;{0}" +
" DoE();{0}" +
" ;{0}" +
" ;;{0}" +
" DoB();{0}" +
" ;{0}" +
-#if NET_2_0
"A{0}" +
-#else
- " A{0}" +
-#endif
" DoC();{0}" +
"}} else {{{0}" +
" DoD();{0}" +
-#if NET_2_0
"B{0}" +
-#else
- " B{0}" +
-#endif
" ;;{0}" +
" DoE();{0}" +
" ;{0}" +
"}}{0}" +
"else {{{0}" +
" DoD();{0}" +
-#if NET_2_0
"B{0}" +
-#else
- " B{0}" +
-#endif
" ;;{0}" +
" DoE();{0}" +
" ;{0}" +
" ;;{0}" +
" DoB();{0}" +
" ;{0}" +
-#if NET_2_0
"A{0}" +
-#else
- " A{0}" +
-#endif
" DoC();{0}" +
"}}{0}", NewLine), Generate (), "#7");
}
" ;;{0}" +
" DoB();{0}" +
"test:{0}" +
-#if NET_2_0
"C{0}" +
-#else
- " C{0}" +
-#endif
" ;{0}" +
-#if NET_2_0
"A{0}" +
-#else
- " A{0}" +
-#endif
" DoC();{0}" +
"}}{0}", NewLine), Generate (), "#5");
}
cls.Statement = new CodeSnippetStatement ("A");
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"class:{0}" +
-#if NET_2_0
"A{0}",
-#else
- " A{0}",
-#endif
NewLine), Generate (), "#3");
}
"catch (System.ApplicationException ) {{{0}" +
"}}{0}" +
"finally {{{0}" +
-#if NET_2_0
"A{0}" +
"B{0}" +
-#else
- " A{0}" +
- " B{0}" +
-#endif
"}}{0}", NewLine), Generate (), "#1");
options.ElseOnClosing = true;
"}} catch (System.ArgumentException ex1) {{{0}" +
"}} catch (System.ApplicationException ) {{{0}" +
"}} finally {{{0}" +
-#if NET_2_0
"A{0}" +
"B{0}" +
-#else
- " A{0}" +
- " B{0}" +
-#endif
"}}{0}", NewLine), Generate (), "#2");
statement = new CodeTryCatchFinallyStatement ();