Logo ROOT   6.10/09
Reference Guide
TNamedTests.cxx
Go to the documentation of this file.
1 #include "gtest/gtest.h"
2 #include "gmock/gmock.h"
3 
4 #include "TNamed.h"
5 
6 TEST(TNamed, Sanity)
7 {
8  TNamed n("Name", "Title");
9  EXPECT_STREQ("Name", n.GetName());
10  EXPECT_STREQ("Title", n.GetTitle());
11 }
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
TEST(TNamed, Sanity)
Definition: TNamedTests.cxx:6
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
const Int_t n
Definition: legend1.C:16
virtual const char * GetTitle() const
Returns title of object.
Definition: TNamed.h:48