コード例 #1
0
        public void InNebraskaTests()
        {
            //41.873428,-103.674048
            var nebraska = new Coordinate(41.873428D, -103.674048D);
            var result1  = Usa.Nebraska.IsInside(nebraska);
            var result2  = Usa.GetState(nebraska);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Nebraska, result2);
        }
コード例 #2
0
        public void InWyomingTests()
        {
            //41.138792,-104.787246
            var wyoming = new Coordinate(41.138792D, -104.787246D);
            var result1 = Usa.Wyoming.IsInside(wyoming);
            var result2 = Usa.GetState(wyoming);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Wyoming, result2);
        }
コード例 #3
0
        public void InConnecticutTests()
        {
            //41.554068, -72.680756
            var connecticut = new Coordinate(41.554068D, -72.680756D);
            var result1     = Usa.Connecticut.IsInside(connecticut);
            var result2     = Usa.GetState(connecticut);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Connecticut, result2);
        }
コード例 #4
0
        public void InWashingtonTests()
        {
            //48.054309,-122.176509
            var washington = new Coordinate(48.054309D, -122.176509D);
            var result1    = Usa.Washington.IsInside(washington);
            var result2    = Usa.GetState(washington);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Washington, result2);
        }
コード例 #5
0
        public void InWisconsinTests()
        {
            //45.100461,-92.536683
            var wisconsin = new Coordinate(45.100461D, -92.536683D);
            var result1   = Usa.Wisconsin.IsInside(wisconsin);
            var result2   = Usa.GetState(wisconsin);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Wisconsin, result2);
        }
コード例 #6
0
        public void InTexasTests()
        {
            //31.772589,-106.499772
            var texas   = new Coordinate(31.772589D, -106.499772D);
            var result1 = Usa.Texas.IsInside(texas);
            var result2 = Usa.GetState(texas);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Texas, result2);
        }
コード例 #7
0
        public void InVermontTests()
        {
            //44.446321,-72.016207
            var vermont = new Coordinate(44.446321D, -72.016207D);
            var result1 = Usa.Vermont.IsInside(vermont);
            var result2 = Usa.GetState(vermont);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Vermont, result2);
        }
コード例 #8
0
        public void InNewYorkTests()
        {
            //40.964062,-73.838745
            var newyork = new Coordinate(40.964062D, -73.838745D);
            var result1 = Usa.NewYork.IsInside(newyork);
            var result2 = Usa.GetState(newyork);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.NewYork, result2);
        }
コード例 #9
0
        public void InNorthCarolinaTests()
        {
            //35.464824,-79.155010
            var northcarolina = new Coordinate(35.464824D, -79.155010D);
            var result1       = Usa.NorthCarolina.IsInside(northcarolina);
            var result2       = Usa.GetState(northcarolina);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.NorthCarolina, result2);
        }
コード例 #10
0
        public void InNewJerseyTests()
        {
            //40.478350,-74.485434
            var newjersey = new Coordinate(40.478350D, -74.485434D);
            var result1   = Usa.NewJersey.IsInside(newjersey);
            var result2   = Usa.GetState(newjersey);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.NewJersey, result2);
        }
コード例 #11
0
        public void InNewMexicoTests()
        {
            //34.426040,-103.196111
            var newmexico = new Coordinate(34.426040D, -103.196111D);
            var result1   = Usa.NewMexico.IsInside(newmexico);
            var result2   = Usa.GetState(newmexico);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.NewMexico, result2);
        }
コード例 #12
0
        public void InArizonaTests()
        {
            //34.72184, -112.001999
            var arizona = new Coordinate(34.72184D, -112.001999D);
            var result1 = Usa.Arizona.IsInside(arizona);
            var result2 = Usa.GetState(arizona);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Arizona, result2);
        }
コード例 #13
0
        public void InNewHampshireTests()
        {
            //43.033777,-70.781229
            var newhampshire = new Coordinate(43.033777D, -70.781229D);
            var result1      = Usa.NewHampshire.IsInside(newhampshire);
            var result2      = Usa.GetState(newhampshire);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.NewHampshire, result2);
        }
コード例 #14
0
        public void InNevadaTests()
        {
            //35.969722,-114.855663
            var nevada  = new Coordinate(35.969722D, -114.855663D);
            var result1 = Usa.Nevada.IsInside(nevada);
            var result2 = Usa.GetState(nevada);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Nevada, result2);
        }
コード例 #15
0
        public void InSouthDakotaTests()
        {
            //43.513922,-96.770636
            var southdakota = new Coordinate(43.513922D, -96.770636D);
            var result1     = Usa.SouthDakota.IsInside(southdakota);
            var result2     = Usa.GetState(southdakota);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.SouthDakota, result2);
        }
コード例 #16
0
        public void InOhioTests()
        {
            //41.403443,-82.364158
            var ohio    = new Coordinate(41.403443D, -82.364158D);
            var result1 = Usa.Ohio.IsInside(ohio);
            var result2 = Usa.GetState(ohio);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Ohio, result2);
        }
コード例 #17
0
        public void InTennesseeTests()
        {
            //36.488110,-86.881293
            var tennessee = new Coordinate(36.488110D, -86.881293D);
            var result1   = Usa.Tennessee.IsInside(tennessee);
            var result2   = Usa.GetState(tennessee);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Tennessee, result2);
        }
コード例 #18
0
        public void InOklahomaTests()
        {
            //36.678490,-101.474060
            var oklahoma = new Coordinate(36.678490D, -101.474060D);
            var result1  = Usa.Oklahoma.IsInside(oklahoma);
            var result2  = Usa.GetState(oklahoma);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Oklahoma, result2);
        }
コード例 #19
0
        public void InUtahTests()
        {
            //41.101169,-111.944091
            var utah    = new Coordinate(41.101169D, -111.944091D);
            var result1 = Usa.Utah.IsInside(utah);
            var result2 = Usa.GetState(utah);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Utah, result2);
        }
コード例 #20
0
        public void InOregonTests()
        {
            //44.055152,-121.262823
            var oregon  = new Coordinate(44.055152D, -121.262823D);
            var result1 = Usa.Oregon.IsInside(oregon);
            var result2 = Usa.GetState(oregon);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Oregon, result2);
        }
コード例 #21
0
        public void InVirginiaTests()
        {
            //36.939721,-82.606858
            var virginia = new Coordinate(36.939721D, -82.606858D);
            var result1  = Usa.Virginia.IsInside(virginia);
            var result2  = Usa.GetState(virginia);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Virginia, result2);
        }
コード例 #22
0
        public void InPennsylvaniaTests()
        {
            //39.950343,-75.158439
            var pennsylvania = new Coordinate(39.950343D, -75.158439D);
            var result1      = Usa.Pennsylvania.IsInside(pennsylvania);
            var result2      = Usa.GetState(pennsylvania);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Pennsylvania, result2);
        }
コード例 #23
0
        public void InWestVirginiaTests()
        {
            //38.389116,-81.833454
            var westvirginia = new Coordinate(38.389116D, -81.833454D);
            var result1      = Usa.WestVirginia.IsInside(westvirginia);
            var result2      = Usa.GetState(westvirginia);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.WestVirginia, result2);
        }
コード例 #24
0
        public void InRhodeIslandTests()
        {
            //41.520053,-71.299064
            var rhodeisland = new Coordinate(41.520053D, -71.299064D);
            var result1     = Usa.RhodeIsland.IsInside(rhodeisland);
            var result2     = Usa.GetState(rhodeisland);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.RhodeIsland, result2);
        }
コード例 #25
0
        public void InCaliforniaTests()
        {
            //38.005984, -121.837694
            var california = new Coordinate(38.005984D, -121.837694D);
            var result1    = Usa.California.IsInside(california);
            var result2    = Usa.GetState(california);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.California, result2);
        }
コード例 #26
0
        public void InArkansasTests()
        {
            //33.239527, -92.665991
            var arkansas = new Coordinate(33.239527D, -92.665991D);
            var result1  = Usa.Arkansas.IsInside(arkansas);
            var result2  = Usa.GetState(arkansas);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Arkansas, result2);
        }
コード例 #27
0
        public void InColoradoTests()
        {
            //37.349247, -108.589035
            var colorado = new Coordinate(37.349247D, -108.589035D);
            var result1  = Usa.Colorado.IsInside(colorado);
            var result2  = Usa.GetState(colorado);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Colorado, result2);
        }
コード例 #28
0
        public void InSouthCarolinaTests()
        {
            //34.216879,-82.157902
            var southcarolina = new Coordinate(34.216879D, -82.157902D);
            var result1       = Usa.SouthCarolina.IsInside(southcarolina);
            var result2       = Usa.GetState(southcarolina);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.SouthCarolina, result2);
        }
コード例 #29
0
        public void InDelawareTests()
        {
            //38.729097, -75.131399
            var delaware = new Coordinate(38.729097D, -75.131399D);
            var result1  = Usa.Delaware.IsInside(delaware);
            var result2  = Usa.GetState(delaware);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Delaware, result2);
        }
コード例 #30
0
        public void InMontanaTests()
        {
            //46.613002,-112.020328
            var montana = new Coordinate(46.613002D, -112.020328D);
            var result1 = Usa.Montana.IsInside(montana);
            var result2 = Usa.GetState(montana);

            Assert.AreEqual(true, result1);
            Assert.AreEqual(StateName.Montana, result2);
        }