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

        RPI::ModelLodAssetCreator creator;

        creator.Begin(Data::AssetId(AZ::Uuid::CreateRandom()));

        ErrorMessageFinder messageFinder("No meshes have been provided for this LOD");

        Data::Asset<RPI::ModelLodAsset> asset;
        ASSERT_FALSE(creator.End(asset));
        ASSERT_FALSE(asset.IsReady());
        ASSERT_EQ(asset.Get(), nullptr);
    }
// Tests that if we try to end the creation of a
// ModelLodAsset that has no meshes that it fails
// as expected.
Tests that if we try to end the creation of a
ModelLodAsset that has no meshes that it fails
as expected.
Tests that if we try to end the creation of a ModelLodAsset that has no meshes that it fails as expected .
TEST_F(ModelTests, CreateLodNoMeshes)
    {
        using namespace AZ;
        RPI::ModelLodAssetCreator creator;
        creator.Begin(Data::AssetId(AZ::Uuid::CreateRandom()));
        ErrorMessageFinder messageFinder("No meshes have been provided for this LOD");
        Data::Asset<RPI::ModelLodAsset> asset;
        ASSERT_FALSE(creator.End(asset));
        ASSERT_FALSE(asset.IsReady());
        ASSERT_EQ(asset.Get(), nullptr);
    }
TEST_F ( ModelTests , CreateLodNoMeshes ) { using namespace AZ ; RPI :: ModelLodAssetCreator creator ; creator . Begin ( Data :: AssetId ( AZ :: Uuid :: CreateRandom ( ) ) ) ; ErrorMessageFinder messageFinder ( " " ) ; Data :: Asset < RPI :: ModelLodAsset > asset ; ASSERT_FALSE ( creator . End ( asset ) ) ; ASSERT_FALSE ( asset . IsReady ( ) ) ; ASSERT_EQ ( asset . Get ( ) , nullptr ) ; }
Tests that if we try to end the creation of a
ModelLodAsset that has no meshes that it fails
as expected.
Tests that if we try to end the creation of a ModelLodAsset that has no meshes that it fails as expected .