Commit bf2d0535 authored by Owen COLAS's avatar Owen COLAS
Browse files

Test hôtel

parent 5b5f8a57
import { Expect, Test, Setup} from "alsatian";
import { Square, createSquare, rent, addHouse } from "../../main/ts/square";
import { Square, createSquare, rent, addHouse, addHotel } from "../../main/ts/square";
export class TestSquare {
......@@ -50,5 +50,12 @@ export class TestSquare {
@Test("Rent with one hotel")
testRentWithOneHotel() {
let rueDeCourcelles : Square = createSquare("Rue de Courcelles", 100, 500, 3000)
for (let i = 0; i < 4; i++) {
addHouse(rueDeCourcelles);
}
addHotel(rueDeCourcelles);
Expect(rent(rueDeCourcelles)).toBe(3000)
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment