//=========================================================================================
		public CodeViewerTokenIndexTests()
		{
			this.Viewer = new CodeViewer();
			this.Viewer.Language = PredefinedLanguage.MsSql;
			var oTestProvider = new TestDbInfoProvider();
			var oSuggestionBuilder = new EditQueryRegExBuilder(this.Viewer, oTestProvider);
			this.Viewer.UseSuggestionRules(oSuggestionBuilder);
		}
		public void SetUp()
		{
			this.Viewer = new CodeViewer();
			this.Viewer.Language = PredefinedLanguage.MsSql;

			var oTestProvider = new TestDbInfoProvider();
			var oSuggestionBuilder = new EditQueryRegExBuilder(Viewer, oTestProvider);
			oSuggestionBuilder.DefaultSchema = "Schema_Second";

			Viewer.UseSuggestionRules(oSuggestionBuilder);
		}
		//=========================================================================================
		public AutoCompleteTests()
		{
			this.Viewer = new CodeViewer();
			this.Viewer.ReadOnly = false;
			this.Viewer.Language = PredefinedLanguage.MsSql;

			var oTestProvider = new TestDbInfoProvider();
			var oSuggestionBuilder = new EditQueryRegExBuilder(Viewer, oTestProvider);
			oSuggestionBuilder.DefaultSchema = "Schema_Second";

			//Create mock
			var oMock = new Mock<CodeCompletor>(MockBehavior.Default);
			//Mock variants list drawing
			oMock.Setup(x => x.ShowVariants(It.IsAny<Point>())).Callback(() => this.VariantsWereShown = true);
			oMock.Setup(x => x.HideVariants()).Callback(() => this.VariantsWereShown = false);
			oMock.Setup(x => x.IsVariantsVisible).Returns(() => this.VariantsWereShown);

			Viewer.CodeCompletor = oMock.Object;
			this.Viewer.UseSuggestionRules(oSuggestionBuilder);
		}