Skip to content

Commit

Permalink
reset tests that check for specific values to a category
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnewton76 committed Dec 26, 2017
1 parent 0f33d67 commit da2831d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Google.Maps.Test/Direction/DirectionServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void Empty_Address_Fails()
}

[Test]
[Ignore("currentLeg.Duration value keeps changing")]
[Category("ValueTesting")]
public void GetResultForDirections_ex1()
{
// Arrange
Expand Down
10 changes: 10 additions & 0 deletions src/Google.Maps.Test/Elevation/ElevationServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ public void OneTimeSetUp()
}

[Test]
[Category("ValueTesting")]
public void SHOULD_NOT_RUN()
{
Console.WriteLine("SHOULD NOT RUN!!!");
}


[Test]
[Category("ValueTesting")]
public void GetElevationForOneLocation()
{
// expectations
Expand All @@ -63,6 +72,7 @@ public void GetElevationForOneLocation()
}

[Test]
[Category("ValueTesting")]
public void GetElevationForTwoLocations()
{
// expectations
Expand Down
2 changes: 2 additions & 0 deletions src/Google.Maps.Test/Geocoding/GeocodingRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class GeocodingRequestTests
//}

[Test]
[Category("ValueTesting")]
public void Implicit_Address_set_from_string()
{
var req = new GeocodingRequest();
Expand All @@ -63,6 +64,7 @@ public void Implicit_Address_set_from_string()
}

[Test]
[Category("ValueTesting")]
public void LatLng_for_address_will_invoke_reverse_geocoding()
{
var req = new GeocodingRequest();
Expand Down
7 changes: 7 additions & 0 deletions src/Google.Maps.Test/Geocoding/GeocodingServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void Empty_address()
}

[Test]
[Category("ValueTesting")]
public void GetGeocodingForAddress1()
{
// Arrange
Expand Down Expand Up @@ -81,6 +82,7 @@ public void GetGeocodingForAddress1()
}

[Test]
[Category("ValueTesting")]
public void GetGeocodingForAddress2()
{
// test
Expand All @@ -98,6 +100,7 @@ public void GetGeocodingForAddress2()
}

[Test]
[Category("ValueTesting")]
public void Geocode_With_AddressComponent_Locking()
{
var requestGB = new GeocodingRequest
Expand Down Expand Up @@ -130,6 +133,7 @@ public void Geocode_With_AddressComponent_Locking()
}

[Test]
[Category("ValueTesting")]
public void Geocode_Without_AddressComponent_Locking()
{
var request = new GeocodingRequest
Expand All @@ -146,6 +150,7 @@ public void Geocode_Without_AddressComponent_Locking()
}

[Test]
[Category("ValueTesting")]
public void GeocodeResult_Has_BoundsProperty()
{
var request = new GeocodingRequest
Expand All @@ -162,6 +167,7 @@ public void GeocodeResult_Has_BoundsProperty()
}

[Test]
[Category("ValueTesting")]
public void GeocodeResult_Supports_PostalTownAndPostalCodePrefix()
{
var request = new GeocodingRequest
Expand All @@ -179,6 +185,7 @@ public void GeocodeResult_Supports_PostalTownAndPostalCodePrefix()
}

[Test]
[Category("ValueTesting")]
public void Utf8_Request_And_Response()
{
var request = new GeocodingRequest
Expand Down
8 changes: 7 additions & 1 deletion src/Google.Maps.Test/QuickExamplesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class QuickExamplesTests
{

[Test]
[Category("ValueTesting")]
public void GeocodingRequest_Example()
{
var request = new GeocodingRequest();
Expand All @@ -32,6 +33,8 @@ public void GeocodingRequest_Example()
Console.WriteLine("Latitude: " + result.Geometry.Location.Latitude); // 37.4230180
Console.WriteLine("Longitude: " + result.Geometry.Location.Longitude); // -122.0818530

//dont assert on actual values sent from google, these can vary!!!

Assert.Pass();
}

Expand All @@ -45,10 +48,13 @@ public void StaticMapRequest_Example()

var imgTagSrc = map.ToUri();

Assert.Pass();
//check program functional outputs, not google's returned values

Assert.That(imgTagSrc.Query.Contains("zoom=14"));
}

[Test]
[Category("ValueTesting")]
public void PartialMatchTest()
{
// invalid address results in partial match
Expand Down
2 changes: 2 additions & 0 deletions src/Google.Maps.Test/TimeZone/TimeZoneServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public void OneTimeSetUp()
}

[Test]
[Category("ValueTesting")]
public void TimeZoneService_Works_During_DST()
{
// Arrange
Expand All @@ -59,6 +60,7 @@ public void TimeZoneService_Works_During_DST()
}

[Test]
[Category("ValueTesting")]
public void TimeZoneService_Works_Outside_DST()
{
// Arrange
Expand Down

0 comments on commit da2831d

Please sign in to comment.