Skip to content
Snippets Groups Projects
Select Git revision
  • f78ca9fff14798be2c2f0370dea8fd9cf4fdffc6
  • main default protected
2 results

GameEngineTests.swift

Blame
  • GameEngineTests.swift 902 B
    //
    //  GameEngineTests.swift
    //  PenduTests
    //
    //  Created by Sofiane Lasri-Trienpont on 09/05/2023.
    //
    
    import XCTest
    
    class GameEngineTests: XCTestCase {
    
        override func setUpWithError() throws {
            // Put setup code here. This method is called before the invocation of each test method in the class.
        }
    
        override func tearDownWithError() throws {
            // Put teardown code here. This method is called after the invocation of each test method in the class.
        }
    
        func testIsGameOver() throws {
            let game:GameEngine = GameEngine();
            XCTAssertEqual(false, game.isGameOver());
        }
        
        func testStartNewGame() throws {
            let game:GameEngine = GameEngine();
            let mot1 = game.WordToGuess(theme: "Sports", difficulty: "Hard")
            let mot2 = game.WordToGuess(theme: "Sports", difficulty: "Hard")
            XCTAssertNotEqual(mot1, mot2)
        }
        
    }