コード例 #1
0
 public void DomainHash_CorrectlyHashesLongUrl()
 {
     Assert.That(AnalyticsEventSender.GetDomainHash("This_is_a_very_long_string_for_a_url_to_test_32_bit_overflow.palaso.org"), Is.EqualTo(52249804));
 }
コード例 #2
0
 public void DomainHash_CorrectlyHashesFieldworksUrl()
 {
     Assert.That(AnalyticsEventSender.GetDomainHash("fieldworks.sil.org"), Is.EqualTo(100181257));
 }
コード例 #3
0
 public void DomainHash_CorrectlyHashesWeSayUrl()
 {
     Assert.That(AnalyticsEventSender.GetDomainHash("WeSay.palaso.org"), Is.EqualTo(45558018));
 }
コード例 #4
0
 public void DomainHash_CorrectlyHashesFlexUrl()
 {
     Assert.That(AnalyticsEventSender.GetDomainHash("flex.palaso.org"), Is.EqualTo(39240052));
 }