示例#1
0
        /// <summary>
        /// Addresses <see cref="http://bugtracker.sharpdevelop.net/Default.aspx?p=4&i=939">SD2-939</see>:
        /// Code Navigate Back dropdown first menu has a blank filename
        /// </summary>
        public void IgnoreBlankFilenamesTest()
        {
            Assert.AreEqual(0, NavigationService.Count);

            INavigationPoint testPoint = new TestNavigationPoint(String.Empty);

            Assert.AreEqual(String.Empty, testPoint.FileName);

            NavigationService.Log(testPoint);
            Assert.AreEqual(0, NavigationService.Count);
        }
示例#2
0
        public override bool Equals(object obj)
        {
            TestNavigationPoint b = obj as TestNavigationPoint;

            if (b == null)
            {
                return(false);
            }
            return(this.FileName == b.FileName &&
                   Math.Abs(this.LineNumber - b.LineNumber) <= 5);
        }
		/// <summary>
		/// Addresses <see cref="http://bugtracker.sharpdevelop.net/Default.aspx?p=4&i=939">SD2-939</see>: 
		/// Code Navigate Back dropdown first menu has a blank filename
		/// </summary>
		public void IgnoreBlankFilenamesTest()
		{
			Assert.AreEqual(0, NavigationService.Count);
			
			INavigationPoint testPoint = new TestNavigationPoint(String.Empty);
			Assert.AreEqual(String.Empty, testPoint.FileName);
			
			NavigationService.Log(testPoint);
			Assert.AreEqual(0, NavigationService.Count);
		}