示例#1
0
		public void Id_is_mapped_back_to_url() {
			var sut = new UrlMapping();
			var id = sut.Id_for_Url("a");
			var url = sut.Url_for_id(id);
			Assert.That(url, Is.EqualTo("a"));
		}
示例#2
0
		public void Url_for_Url_returns_an_id() {
			var sut = new UrlMapping();
			var id = sut.Id_for_Url("a");
			Assert.That(id.Length, Is.EqualTo(6));
		}