Ejemplo n.º 1
0
    public void SetOwnerTest()
    {
        //Arrange
        var verbalClue = new VerbalClue(null, null);
        var owner      = new NonPlayerCharacter(null, null, null, null, null, null);

        //Act
        verbalClue.SetOwner(owner);

        //Assert
        Assert.AreSame(verbalClue.GetOwner(), owner);
    }
Ejemplo n.º 2
0
    public void GetOwnerTest()
    {
        //Arrange
        var verbalClue = new VerbalClue(null, null);
        var owner      = new NonPlayerCharacter(null, null, null, null, null, null);

        verbalClue.SetOwner(owner);
        //Act
        //Try to rename the GameObject
        var fetchedOwner = verbalClue.GetOwner();

        //Assert
        //The object has a new name
        Assert.AreSame(fetchedOwner, owner);
    }
Ejemplo n.º 3
0
 public void SetOwnerTest()
 {
     //Assert
     Assert.AreSame(verbalClue.GetOwner(), owner);
 }