Created
December 24, 2013 16:16
-
-
Save george-silva/8115239 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // usings | |
| public namespace Fulano | |
| { | |
| [TestFixture] | |
| public class TesteAzimute() | |
| { | |
| // Lembre-se: | |
| // 0 graus ou 360 = Norte | |
| // 90 graus = Leste | |
| // 180 graus = Sul | |
| // 270 graus = Oeste | |
| [TestCase] | |
| public void Teste90GrausCorreto() | |
| { | |
| var calculadora = CalculadoraAzimute(); | |
| // lembre-se, coordenada x e y. | |
| IPoint de = new PointClass(); | |
| de.PutCoords(0, 0); | |
| // este ponto está a direita do ponto 'de', na mesma linha - note o y igual. | |
| IPoint para = new PointClass(); | |
| para.PutCoords(1, 0); | |
| // lembre-se que a calculadora, no exemplo anterior ela está retornando em radianos e aqui estou testando graus. | |
| Assert.AreEqual(90, calculadora.CalcularAzimute(de, para)); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment