package game_test

import (
	"testing"

	"galaxy/game/internal/model/game"

	"github.com/stretchr/testify/assert"
)

func TestEmptyMass(t *testing.T) {
	Freighter := game.ShipType{
		Name:     "Freighter",
		Drive:    8,
		Armament: 0,
		Weapons:  0,
		Shields:  2,
		Cargo:    10,
	}
	assert.Equal(t, 20., Freighter.EmptyMass())

	Gunship := game.ShipType{
		Name:     "Gunship",
		Drive:    4,
		Armament: 2,
		Weapons:  2,
		Shields:  4,
		Cargo:    0,
	}
	assert.Equal(t, 11., Gunship.EmptyMass())

	Cruiser := game.ShipType{
		Name:     "Cruiser",
		Drive:    15,
		Armament: 1,
		Weapons:  15,
		Shields:  15,
		Cargo:    0,
	}
	assert.Equal(t, 45., Cruiser.EmptyMass())
}
