@@ -780,8 +780,8 @@ public void GetColorScheme()
780780 try
781781 {
782782 Console . BackgroundColor = ConsoleColor . Black ;
783- Parser . Configuration . ColorScheme . Set ( null ) ;
784- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ) ) ;
783+ Parser . ColorScheme . Set ( null ) ;
784+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ) ) ;
785785 }
786786 finally
787787 {
@@ -797,50 +797,50 @@ public void ValidateBackgroundColorScheme()
797797 try
798798 {
799799 #region Dark backgound
800- Parser . Configuration . ColorScheme . Set ( null ) ;
801- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Black ) ) ;
802- Parser . Configuration . ColorScheme . Set ( null ) ;
803- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . DarkGray ) ) ;
804- Parser . Configuration . ColorScheme . Set ( null ) ;
805- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . DarkCyan ) ) ;
806- Parser . Configuration . ColorScheme . Set ( null ) ;
807- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . DarkGreen ) ) ;
808- Parser . Configuration . ColorScheme . Set ( null ) ;
809- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . DarkMagenta ) ) ;
810- Parser . Configuration . ColorScheme . Set ( null ) ;
811- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . DarkRed ) ) ;
812- Parser . Configuration . ColorScheme . Set ( null ) ;
813- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Blue ) ) ;
814- Parser . Configuration . ColorScheme . Set ( null ) ;
815- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Magenta ) ) ;
816- Parser . Configuration . ColorScheme . Set ( null ) ;
817- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . DarkBlue ) ) ;
800+ Parser . ColorScheme . Set ( null ) ;
801+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Black ) ) ;
802+ Parser . ColorScheme . Set ( null ) ;
803+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . DarkGray ) ) ;
804+ Parser . ColorScheme . Set ( null ) ;
805+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . DarkCyan ) ) ;
806+ Parser . ColorScheme . Set ( null ) ;
807+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . DarkGreen ) ) ;
808+ Parser . ColorScheme . Set ( null ) ;
809+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . DarkMagenta ) ) ;
810+ Parser . ColorScheme . Set ( null ) ;
811+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . DarkRed ) ) ;
812+ Parser . ColorScheme . Set ( null ) ;
813+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Blue ) ) ;
814+ Parser . ColorScheme . Set ( null ) ;
815+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Magenta ) ) ;
816+ Parser . ColorScheme . Set ( null ) ;
817+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ConsoleColor . DarkBlue ) ) ;
818818 #endregion
819819
820820 #region Multicolor
821- Parser . Configuration . ColorScheme . Set ( null ) ;
822- Assert . IsType < GrayBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Gray ) ) ;
823- Parser . Configuration . ColorScheme . Set ( null ) ;
824- Assert . IsType < DarkYellowBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . DarkYellow ) ) ;
825- Parser . Configuration . ColorScheme . Set ( null ) ;
826- Assert . IsType < GreenBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Green ) ) ;
827- Parser . Configuration . ColorScheme . Set ( null ) ;
828- Assert . IsType < CyanBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Cyan ) ) ;
829- Parser . Configuration . ColorScheme . Set ( null ) ;
830- Assert . IsType < RedBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Red ) ) ;
821+ Parser . ColorScheme . Set ( null ) ;
822+ Assert . IsType < GrayBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Gray ) ) ;
823+ Parser . ColorScheme . Set ( null ) ;
824+ Assert . IsType < DarkYellowBackground > ( Parser . ColorScheme . Get ( ConsoleColor . DarkYellow ) ) ;
825+ Parser . ColorScheme . Set ( null ) ;
826+ Assert . IsType < GreenBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Green ) ) ;
827+ Parser . ColorScheme . Set ( null ) ;
828+ Assert . IsType < CyanBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Cyan ) ) ;
829+ Parser . ColorScheme . Set ( null ) ;
830+ Assert . IsType < RedBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Red ) ) ;
831831
832832 #endregion
833833
834834 #region Light background
835- Parser . Configuration . ColorScheme . Set ( null ) ;
836- Assert . IsType < LightBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . White ) ) ;
837- Parser . Configuration . ColorScheme . Set ( null ) ;
838- Assert . IsType < LightBackground > ( Parser . Configuration . ColorScheme . Get ( ConsoleColor . Yellow ) ) ;
835+ Parser . ColorScheme . Set ( null ) ;
836+ Assert . IsType < LightBackground > ( Parser . ColorScheme . Get ( ConsoleColor . White ) ) ;
837+ Parser . ColorScheme . Set ( null ) ;
838+ Assert . IsType < LightBackground > ( Parser . ColorScheme . Get ( ConsoleColor . Yellow ) ) ;
839839 #endregion
840840
841841 #region Unknown color
842- Parser . Configuration . ColorScheme . Set ( null ) ;
843- Assert . IsType < DarkBackground > ( Parser . Configuration . ColorScheme . Get ( ( ConsoleColor ) 25 ) ) ;
842+ Parser . ColorScheme . Set ( null ) ;
843+ Assert . IsType < DarkBackground > ( Parser . ColorScheme . Get ( ( ConsoleColor ) 25 ) ) ;
844844 #endregion
845845 }
846846 finally
0 commit comments