Gems/Atom/RPI/Code/Tests/Model/ModelTests.cpp
TEST_F(ModelTests, AddLodNoBegin)
    {
        using namespace AZ;

        RPI::ModelAssetCreator creator;

        //Build a valid lod
        ExpectedLod expectedLod;
        Data::Asset<RPI::ModelLodAsset> lod = BuildTestLod(0, 1, expectedLod);

        ErrorMessageFinder messageFinder("Begin() was not called");

        creator.AddLodAsset(AZStd::move(lod));
    }
// Tests that if we try to add a ModelLod to a Model
// before calling Begin that it will fail.
Tests that if we try to add a ModelLod to a Model
before calling Begin that it will fail.
Tests that if we try to add a ModelLod to a Model before calling Begin that it will fail .
TEST_F(ModelTests, AddLodNoBegin)
    {
        using namespace AZ;
        RPI::ModelAssetCreator creator;
        ExpectedLod expectedLod;
        Data::Asset<RPI::ModelLodAsset> lod = BuildTestLod(0, 1, expectedLod);
        ErrorMessageFinder messageFinder("Begin() was not called");
        creator.AddLodAsset(AZStd::move(lod));
    }
TEST_F ( ModelTests , AddLodNoBegin ) { using namespace AZ ; RPI :: ModelAssetCreator creator ; ExpectedLod expectedLod ; Data :: Asset < RPI :: ModelLodAsset > lod = BuildTestLod ( 0 , 1 , expectedLod ) ; ErrorMessageFinder messageFinder ( " " ) ; creator . AddLodAsset ( AZStd :: move ( lod ) ) ; }
Tests that if we try to add a ModelLod to a Model
before calling Begin that it will fail.
Tests that if we try to add a ModelLod to a Model before calling Begin that it will fail .
//Build a valid lod